Skip to content

Commit 1224ba6

Browse files
Bump nl.jqno.equalsverifier:equalsverifier from 4.2.2 to 4.2.3 (#1242)
1 parent 2a1ea9f commit 1224ba6

File tree

3 files changed

+14
-28
lines changed

3 files changed

+14
-28
lines changed

core/src/test/java/com/ericsson/bss/cassandra/ecchronos/core/repair/state/TestNormalizedRange.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,16 @@
1919
import com.google.common.collect.ImmutableSet;
2020
import nl.jqno.equalsverifier.EqualsVerifier;
2121
import org.junit.Test;
22-
import org.junit.runner.RunWith;
23-
import org.mockito.Mock;
24-
import org.mockito.junit.MockitoJUnitRunner;
2522

2623
import java.math.BigInteger;
2724

2825
import static com.ericsson.bss.cassandra.ecchronos.core.repair.state.NormalizedRange.UNKNOWN_REPAIR_TIME;
2926
import static org.assertj.core.api.Assertions.assertThat;
3027
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
3128

32-
@RunWith(MockitoJUnitRunner.class)
3329
public class TestNormalizedRange
3430
{
3531
private static final BigInteger START = BigInteger.ZERO;
36-
37-
@Mock
38-
DriverNode mockNode;
3932

4033
@Test
4134
public void testMutateStart()
@@ -349,6 +342,6 @@ private BigInteger bi(long token)
349342

350343
private VnodeRepairState withVnode(long start, long end, long startedAt, long finishedAt)
351344
{
352-
return new VnodeRepairState(new LongTokenRange(start, end), ImmutableSet.of(mockNode), startedAt, finishedAt);
345+
return new VnodeRepairState(new LongTokenRange(start, end), ImmutableSet.of(), startedAt, finishedAt);
353346
}
354347
}

core/src/test/java/com/ericsson/bss/cassandra/ecchronos/core/repair/state/TestRepairEntry.java

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,20 @@
1919
import com.google.common.collect.Sets;
2020
import nl.jqno.equalsverifier.EqualsVerifier;
2121
import org.junit.Test;
22-
import org.junit.runner.RunWith;
23-
import org.mockito.Mock;
24-
import org.mockito.junit.MockitoJUnitRunner;
2522

2623
import java.util.Set;
2724

2825
import static org.assertj.core.api.Assertions.assertThat;
2926

30-
@RunWith(MockitoJUnitRunner.class)
3127
public class TestRepairEntry
3228
{
33-
@Mock
34-
private DriverNode mockNode;
35-
3629
@Test
3730
public void testGetters()
3831
{
3932
LongTokenRange expectedLongTokenRange = new LongTokenRange(0, 1);
4033
long expectedStartedAt = 5;
4134
long expectedFinishedAt = expectedStartedAt + 5;
42-
Set<DriverNode> expectedParticipants = Sets.newHashSet(mockNode);
35+
Set<DriverNode> expectedParticipants = Sets.newHashSet();
4336
RepairStatus expectedStatus = RepairStatus.SUCCESS;
4437

4538
RepairEntry repairEntry = new RepairEntry(expectedLongTokenRange, expectedStartedAt, expectedFinishedAt, expectedParticipants, expectedStatus.toString());
@@ -54,8 +47,8 @@ public void testGetters()
5447
@Test
5548
public void testRepairEntriesAreEqual()
5649
{
57-
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(mockNode), "SUCCESS");
58-
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(mockNode), "SUCCESS");
50+
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(), "SUCCESS");
51+
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(), "SUCCESS");
5952

6053
assertThat(repairEntry).isEqualTo(repairEntry2);
6154
assertThat(repairEntry.hashCode()).isEqualTo(repairEntry2.hashCode());
@@ -64,34 +57,34 @@ public void testRepairEntriesAreEqual()
6457
@Test
6558
public void testRepairEntriesWithDifferentRangeAreNotEqual()
6659
{
67-
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(mockNode), "SUCCESS");
68-
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(1, 2), 5, 5, Sets.newHashSet(mockNode), "SUCCESS");
60+
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(), "SUCCESS");
61+
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(1, 2), 5, 5, Sets.newHashSet(), "SUCCESS");
6962

7063
assertThat(repairEntry).isNotEqualTo(repairEntry2);
7164
}
7265

7366
@Test
7467
public void testRepairEntriesWithDifferentStartedAtAreNotEqual()
7568
{
76-
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 7, Sets.newHashSet(mockNode), "SUCCESS");
77-
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 6, 7, Sets.newHashSet(mockNode), "SUCCESS");
69+
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 7, Sets.newHashSet(), "SUCCESS");
70+
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 6, 7, Sets.newHashSet(), "SUCCESS");
7871

7972
assertThat(repairEntry).isNotEqualTo(repairEntry2);
8073
}
8174

8275
@Test
8376
public void testRepairEntriesWithDifferentFinishedAtAreNotEqual()
8477
{
85-
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 6, Sets.newHashSet(mockNode), "SUCCESS");
86-
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 7, Sets.newHashSet(mockNode), "SUCCESS");
78+
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 6, Sets.newHashSet(), "SUCCESS");
79+
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 7, Sets.newHashSet(), "SUCCESS");
8780

8881
assertThat(repairEntry).isNotEqualTo(repairEntry2);
8982
}
9083

9184
@Test
9285
public void testRepairEntriesWithDifferentParticipantsAreNotEqual()
9386
{
94-
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(mockNode), "SUCCESS");
87+
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(new DriverNode(null)), "SUCCESS");
9588
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(), "SUCCESS");
9689

9790
assertThat(repairEntry).isNotEqualTo(repairEntry2);
@@ -100,8 +93,8 @@ public void testRepairEntriesWithDifferentParticipantsAreNotEqual()
10093
@Test
10194
public void testRepairEntriesWithDifferentStatusAreNotEqual()
10295
{
103-
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(mockNode), "SUCCESS");
104-
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(mockNode), "FAILED");
96+
RepairEntry repairEntry = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(), "SUCCESS");
97+
RepairEntry repairEntry2 = new RepairEntry(new LongTokenRange(0, 1), 5, 5, Sets.newHashSet(), "FAILED");
10598

10699
assertThat(repairEntry).isNotEqualTo(repairEntry2);
107100
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<com.fasterxml.jackson.annotations.version>2.20</com.fasterxml.jackson.annotations.version>
6363
<com.fasterxml.jackson.core.version>2.20.1</com.fasterxml.jackson.core.version>
6464
<com.typesafe.config.version>1.4.5</com.typesafe.config.version>
65-
<equalsverifier.version>4.2.2</equalsverifier.version>
65+
<equalsverifier.version>4.2.3</equalsverifier.version>
6666
<guava.version>33.5.0-jre</guava.version>
6767
<io.dropwizard.metrics.version>4.2.37</io.dropwizard.metrics.version>
6868
<io.micrometer.version>1.16.0</io.micrometer.version>

0 commit comments

Comments
 (0)