Skip to content

Commit 6fb94c1

Browse files
johnmayegonw
authored andcommitted
Update Mockito to 4.1.0 - fixing test failures (except InChI) on M1 AARCH64.
1 parent 6928ebf commit 6fb94c1

File tree

31 files changed

+37
-37
lines changed

31 files changed

+37
-37
lines changed

base/data/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</dependency>
5757
<dependency>
5858
<groupId>org.mockito</groupId>
59-
<artifactId>mockito-all</artifactId>
59+
<artifactId>mockito-core</artifactId>
6060
<scope>test</scope>
6161
</dependency>
6262
<dependency>

base/datadebug/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</dependency>
6565
<dependency>
6666
<groupId>org.mockito</groupId>
67-
<artifactId>mockito-all</artifactId>
67+
<artifactId>mockito-core</artifactId>
6868
<scope>test</scope>
6969
</dependency>
7070
<dependency>

base/isomorphism/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</dependency>
3535
<dependency>
3636
<groupId>org.mockito</groupId>
37-
<artifactId>mockito-all</artifactId>
37+
<artifactId>mockito-core</artifactId>
3838
<scope>test</scope>
3939
</dependency>
4040
<dependency>

base/isomorphism/src/test/java/org/openscience/cdk/isomorphism/VFStateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
import static org.junit.Assert.assertFalse;
3535
import static org.junit.Assert.assertTrue;
36-
import static org.mockito.Matchers.any;
36+
import static org.mockito.ArgumentMatchers.any;
3737
import static org.mockito.Mockito.mock;
3838
import static org.mockito.Mockito.when;
3939

base/isomorphism/src/test/java/org/openscience/cdk/isomorphism/VFSubStateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
import static org.junit.Assert.assertFalse;
3535
import static org.junit.Assert.assertTrue;
36-
import static org.mockito.Matchers.any;
36+
import static org.mockito.ArgumentMatchers.any;
3737
import static org.mockito.Mockito.mock;
3838
import static org.mockito.Mockito.when;
3939

base/silent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</dependency>
5757
<dependency>
5858
<groupId>org.mockito</groupId>
59-
<artifactId>mockito-all</artifactId>
59+
<artifactId>mockito-core</artifactId>
6060
<scope>test</scope>
6161
</dependency>
6262
<dependency>

base/test-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</dependency>
3333
<dependency>
3434
<groupId>org.mockito</groupId>
35-
<artifactId>mockito-all</artifactId>
35+
<artifactId>mockito-core</artifactId>
3636
<scope>test</scope>
3737
</dependency>
3838
<dependency>

base/test-core/src/test/java/org/openscience/cdk/DynamicFactoryTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import static org.junit.Assert.assertNotNull;
4040
import static org.hamcrest.MatcherAssert.assertThat;
4141
import static org.junit.Assert.assertTrue;
42-
import static org.mockito.Matchers.anyObject;
42+
import static org.mockito.ArgumentMatchers.any;
4343
import static org.mockito.Mockito.mock;
4444
import static org.mockito.Mockito.times;
4545
import static org.mockito.Mockito.verify;
@@ -183,7 +183,7 @@ public void testRegister_Constructor_Modifier() throws Exception {
183183
assertNotNull(factory.ofClass(ICDKObject.class, "empty"));
184184

185185
// verify the modifier was invoked once
186-
verify(modifier).modify(anyObject());
186+
verify(modifier).modify(any());
187187

188188
}
189189

@@ -446,7 +446,7 @@ public void testRegister_WithModifier() {
446446
assertNotNull(factory.ofClass(IAtom.class));
447447

448448
// verify the modify method was called once
449-
verify(modifier, times(1)).modify(anyObject());
449+
verify(modifier, times(1)).modify(any());
450450

451451
}
452452

base/test-core/src/test/java/org/openscience/cdk/ringsearch/RingSearchTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
import static org.junit.Assert.assertFalse;
3737
import static org.hamcrest.MatcherAssert.assertThat;
3838
import static org.junit.Assert.assertTrue;
39-
import static org.mockito.Matchers.any;
40-
import static org.mockito.Matchers.anyInt;
39+
import static org.mockito.ArgumentMatchers.any;
40+
import static org.mockito.ArgumentMatchers.anyInt;
4141
import static org.mockito.Mockito.mock;
4242
import static org.mockito.Mockito.times;
4343
import static org.mockito.Mockito.verify;

base/test-interfaces/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</dependency>
2828
<dependency>
2929
<groupId>org.mockito</groupId>
30-
<artifactId>mockito-all</artifactId>
30+
<artifactId>mockito-core</artifactId>
3131
<scope>test</scope>
3232
</dependency>
3333
<dependency>

0 commit comments

Comments
 (0)