diff --git a/src/main/java/org/mockito/internal/configuration/DefaultDoNotMockEnforcer.java b/src/main/java/org/mockito/internal/configuration/DefaultDoNotMockEnforcer.java index 793a59b0a0..ada97d6569 100644 --- a/src/main/java/org/mockito/internal/configuration/DefaultDoNotMockEnforcer.java +++ b/src/main/java/org/mockito/internal/configuration/DefaultDoNotMockEnforcer.java @@ -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(); }