Skip to content

Commit

Permalink
Remove reference to internal class in AdditionalAnswers javadoc (mock…
Browse files Browse the repository at this point in the history
  • Loading branch information
vinischeidegger authored and epeee committed Jun 22, 2020
1 parent 113e759 commit 4f8b9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mockito/AdditionalAnswers.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public static <T> Answer<T> delegatesTo(Object delegate) {
* when(mock.foo()).thenReturn(1, 2, 3);
*
* //is equivalent to:
* when(mock.foo()).thenAnswer(new ReturnsElementsOf(Arrays.asList(1, 2, 3)));
* when(mock.foo()).thenAnswer(AdditionalAnswers.returnsElementsOf(Arrays.asList(1, 2, 3)));
* </code></pre>
*
* @param elements The collection of elements to return.
Expand Down

0 comments on commit 4f8b9f6

Please sign in to comment.