Skip to content

Commit

Permalink
Fix typo 'DoNoMock' should be 'DoNotMock' (#2487)
Browse files Browse the repository at this point in the history
  • Loading branch information
cushon committed Nov 23, 2021
1 parent 3f1d280 commit c4e3040
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -16,7 +16,7 @@ public String checkTypeForDoNotMockViolation(Class<?> type) {
for (Annotation annotation : type.getAnnotations()) {
if (annotation.annotationType().getName().endsWith("org.mockito.DoNotMock")) {
String exceptionMessage =
type + " is annotated with @org.mockito.DoNoMock and can't be mocked.";
type + " is annotated with @org.mockito.DoNotMock and can't be mocked.";
if (DoNotMock.class.equals(annotation.annotationType())) {
exceptionMessage += " " + type.getAnnotation(DoNotMock.class).reason();
}
Expand Down

0 comments on commit c4e3040

Please sign in to comment.