From 3387122add1a6e3a13e22dd944f1724e71bf9f41 Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Tue, 3 Aug 2021 15:32:52 +0200 Subject: [PATCH] Reorder InjectMock Javadoc to fit the order of injection InjectMock performs inject in the order of Construction, parameter and setter and it would be consistent to use this order in the initial explanation of the Javadoc. --- 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 3327f9dc33..6ed02abc6c 100644 --- a/src/main/java/org/mockito/InjectMocks.java +++ b/src/main/java/org/mockito/InjectMocks.java @@ -22,7 +22,7 @@ * *

* Mockito will try to inject mocks only either by constructor injection, - * setter injection, or property injection in order and as described below. + * property injection or setter injection in order and as described below. * If any of the following strategy fail, then Mockito won't report failure; * i.e. you will have to provide dependencies yourself. *