diff --git a/src/main/java/org/mockito/InjectMocks.java b/src/main/java/org/mockito/InjectMocks.java index 2921f0c9aa..375c35514d 100644 --- a/src/main/java/org/mockito/InjectMocks.java +++ b/src/main/java/org/mockito/InjectMocks.java @@ -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. *

Note 1: If you have properties with the same type (or same erasure), it's better to name all @Mock * annotated fields with the matching properties, otherwise Mockito might get confused and injection won't happen.

- *

Note 2: If @InjectMocks instance wasn't initialized before and have a no-arg constructor, + *

Note 2: If @InjectMocks instance wasn't initialized before and has a no-arg constructor, * then it will be initialized with this constructor.

* *
  • Field injection; mocks will first be resolved by type (if a single type match