Skip to content

Commit

Permalink
Remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 24, 2021
1 parent e1f9855 commit 3ed0655
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ public void shouldStub() {

@Test
public void shouldAllowOverridingStubs() {
when(spy.contains(anyObject())).thenReturn(true);
when(spy.contains(any())).thenReturn(true);
when(spy.contains("foo")).thenReturn(false);

assertTrue(spy.contains("bar"));
Expand Down

0 comments on commit 3ed0655

Please sign in to comment.