From 5559044fba4835d8cd47171022accd36d5368a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ser=C5=BC=20Kwiatkowski?= Date: Wed, 13 Nov 2019 09:01:54 +0200 Subject: [PATCH] fix a word mistake --- src/main/java/org/mockito/InjectMocks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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