Skip to content

Commit

Permalink
Reorder InjectMock Javadoc to fit the order of injection (#2383)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vogella committed Aug 3, 2021
1 parent f32973d commit 1a8750f
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 @@ -22,7 +22,7 @@
* </ul>
* <p>
* 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 <strong>won't report failure</strong>;
* i.e. you will have to provide dependencies yourself.
* <ol>
Expand Down

0 comments on commit 1a8750f

Please sign in to comment.