Skip to content

Commit

Permalink
remove mutability usage
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Stanchev <aleksandar.stanchev@bosch.com>
  • Loading branch information
alstanchev committed Aug 30, 2024
1 parent b072a65 commit 8263efa
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

package org.eclipse.ditto.thingsearch.service.common.config;

import static org.mutabilitydetector.unittesting.AllowedReason.provided;
import static org.mutabilitydetector.unittesting.MutabilityAssert.assertInstancesOf;
import static org.mutabilitydetector.unittesting.MutabilityMatchers.areImmutable;

import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -46,16 +42,6 @@ public static void initTestFixture() {
customSearchMetricTestConfig = config.getConfig("ditto.search.operator-metrics.custom-search-metrics");
}

@Test
public void assertImmutabilityFilterConfig() {
assertInstancesOf(DefaultCustomSearchMetricConfig.DefaultFilterConfig.class, areImmutable(), provided(Config.class).isAlsoImmutable());
}
@Test
public void assertImmutabilityCustomSearchMetricConfig() {
assertInstancesOf(DefaultCustomSearchMetricConfig.class, areImmutable(), provided(Config.class).isAlsoImmutable(),
provided(DefaultCustomSearchMetricConfig.FilterConfig.class).isAlsoImmutable());
}

@Test
public void testHashCodeAndEquals() {
EqualsVerifier.forClass(DefaultCustomSearchMetricConfig.class)
Expand Down

0 comments on commit 8263efa

Please sign in to comment.