Skip to content

Commit

Permalink
Fix typo (#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Jul 20, 2020
1 parent 361c39f commit 98b0d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mockito/AdditionalAnswers.java
Expand Up @@ -276,7 +276,7 @@ public static <T> Answer<T> returnsArgAt(int position) {
* This feature suffers from the same drawback as the spy.
* The mock will call the delegate if you use regular when().then() stubbing style.
* Since the real implementation is called this might have some side effects.
* Therefore you should to use the doReturn|Throw|Answer|CallRealMethod stubbing style. Example:
* Therefore you should use the doReturn|Throw|Answer|CallRealMethod stubbing style. Example:
*
* <pre class="code"><code class="java">
* List listWithDelegate = mock(List.class, AdditionalAnswers.delegatesTo(awesomeList));
Expand Down

0 comments on commit 98b0d90

Please sign in to comment.