From 1a8750f816d2dd2cf03b5ab80e141cfc8250910d Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Tue, 3 Aug 2021 17:06:38 +0200 Subject: [PATCH] Reorder InjectMock Javadoc to fit the order of injection (#2383) 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. *