Package org.assertj.core.error
Class ShouldBeAnnotation
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBeAnnotation
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a class is (or not) an annotation.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldBeAnnotation(Class<?> actual) Creates a new.ShouldBeAnnotationstatic ErrorMessageFactoryshouldNotBeAnnotation(Class<?> actual) Creates a new.ShouldBeAnnotationMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldBeAnnotation
-
-
Method Details
-
shouldBeAnnotation
Creates a new.ShouldBeAnnotation- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotBeAnnotation
Creates a new.ShouldBeAnnotation- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-