Skip to content

Commit

Permalink
Update StaticMockTest to use unified verify method (#2385)
Browse files Browse the repository at this point in the history
  • Loading branch information
vogella committed Aug 4, 2021
1 parent fc7f7e2 commit f62b196
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -130,7 +130,7 @@ public void testStaticMockDoesNotAffectDifferentThread() throws InterruptedExcep
assertEquals("foo", reference.get());
dummy.when(Dummy::foo).thenReturn("bar");
assertEquals("bar", Dummy.foo());
dummy.verify(times(2), Dummy::foo);
dummy.verify(Dummy::foo, times(2));
}
}

Expand All @@ -152,7 +152,7 @@ public void testStaticMockCanCoexistWithMockInDifferentThread() throws Interrupt
assertEquals("qux", reference.get());
dummy.when(Dummy::foo).thenReturn("bar");
assertEquals("bar", Dummy.foo());
dummy.verify(times(2), Dummy::foo);
dummy.verify(Dummy::foo, times(2));
}
}

Expand Down

0 comments on commit f62b196

Please sign in to comment.