Skip to content

Commit

Permalink
mockito#2934 spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörg von Frantzius committed Mar 14, 2023
1 parent 6dcc2c4 commit 738ab00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/mockito/internal/exceptions/Reporter.java
Expand Up @@ -910,7 +910,8 @@ public static MockitoException moreThanOneMockCandidate(
+ "' that is annotated with @InjectMocks in your test, ",
"because there were multiple matching mocks (i.e. "
+ "fields annotated with @Mock and having matching type): "
+ String.join(", ", mockNames) + ".",
+ String.join(", ", mockNames)
+ ".",
"If you have multiple fields of same type in your class under test "
+ "then consider naming the @Mock fields "
+ "identically to the respective class under test's fields, "
Expand Down

0 comments on commit 738ab00

Please sign in to comment.