Skip to content

Commit

Permalink
Fix code example in ArgumentMatchers javadoc section (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
diguage authored and TimvdLippe committed Nov 6, 2019
1 parent 6379ce9 commit adf146b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mockito/Mockito.java
Expand Up @@ -243,7 +243,7 @@
* when(mockedList.get(anyInt())).thenReturn("element");
*
* //stubbing using custom matcher (let's say isValid() returns your own matcher implementation):
* when(mockedList.contains(argThat(isValid()))).thenReturn("element");
* when(mockedList.contains(argThat(isValid()))).thenReturn(true);
*
* //following prints "element"
* System.out.println(mockedList.get(999));
Expand Down

0 comments on commit adf146b

Please sign in to comment.