Skip to content

Commit

Permalink
Merge pull request #1823 from scadgek/patch-1
Browse files Browse the repository at this point in the history
fix a word mistake
  • Loading branch information
bric3 committed Nov 13, 2019
2 parents 4e53343 + 5559044 commit 5fc2b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mockito/InjectMocks.java
Expand Up @@ -39,7 +39,7 @@
* then, if there is several property of the same type, by the match of the property name and the mock name.
* <p><u>Note 1:</u> If you have properties with the same type (or same erasure), it's better to name all &#064;Mock
* annotated fields with the matching properties, otherwise Mockito might get confused and injection won't happen.</p>
* <p><u>Note 2:</u> If &#064;InjectMocks instance wasn't initialized before and have a no-arg constructor,
* <p><u>Note 2:</u> If &#064;InjectMocks instance wasn't initialized before and has a no-arg constructor,
* then it will be initialized with this constructor.</p></li>
*
* <li><strong>Field injection</strong>; mocks will first be resolved by type (if a single type match
Expand Down

0 comments on commit 5fc2b84

Please sign in to comment.