10000 Update StaticMockTest to use unified verify method (#2385) · mockito/mockito@f62b196 · GitHub
[go: up one dir, main page]

Skip to content

Commit f62b196

Browse files
authored
Update StaticMockTest to use unified verify method (#2385)
1 parent fc7f7e2 commit f62b196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subprojects/inline/src/test/java/org/mockitoinline/StaticMockTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void testStaticMockDoesNotAffectDifferentThread() throws InterruptedExcep
130130
assertEquals("foo", reference.get());
131131
dummy.when(Dummy::foo).thenReturn("bar");
132132
assertEquals("bar", Dummy.foo());
133-
dummy.verify(times(2), Dummy::foo);
133+
dummy.verify(Dummy::foo, times(2));
134134
}
135135
}
136136

@@ -152,7 +152,7 @@ public void testStaticMockCanCoexistWithMockInDifferentThread() throws Interrupt
152152
assertEquals("qux", reference.get());
153153
dummy.when(Dummy::foo).thenReturn("bar");
154154
assertEquals("bar", Dummy.foo());
155-
dummy.verify(times(2), Dummy::foo);
155+
dummy.verify(Dummy::foo, times(2));
156156
}
157157
}
158158

0 commit comments

Comments
 (0)
0