Package org.assertj.core.error
Class ClassModifierShouldBe
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ClassModifierShouldBe
- All Implemented Interfaces:
ErrorMessageFactory
Error message factory for an assertion which checks that a class has (or has not) a specific modifier.
- Author:
- Michal Kordas
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldBeFinal(Class<?> actual) Creates a new instance for a positive check of thefinalmodifier.static ErrorMessageFactoryshouldBePackagePrivate(Class<?> actual) Creates a new instance for a positive check of thepackage-privatemodifier.static ErrorMessageFactoryshouldBePrivate(Class<?> actual) Creates a new instance for a positive check of theprivatemodifier.static ErrorMessageFactoryshouldBeProtected(Class<?> actual) Creates a new instance for a positive check of theprotectedmodifier.static ErrorMessageFactoryshouldBePublic(Class<?> actual) Creates a new instance for a positive check of thepublicmodifier.static ErrorMessageFactoryshouldBeStatic(Class<?> actual) Creates a new instance for a positive check of thestaticmodifier.static ErrorMessageFactoryshouldNotBeFinal(Class<?> actual) Creates a new instance for a negative check of thefinalmodifier.static ErrorMessageFactoryshouldNotBeStatic(Class<?> actual) Creates a new instance for a negative check of thestaticmodifier.Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBeFinal
Creates a new instance for a positive check of thefinalmodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotBeFinal
Creates a new instance for a negative check of thefinalmodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBePublic
Creates a new instance for a positive check of thepublicmodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeProtected
Creates a new instance for a positive check of theprotectedmodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBePackagePrivate
Creates a new instance for a positive check of thepackage-privatemodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBePrivate
Creates a new instance for a positive check of theprivatemodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeStatic
Creates a new instance for a positive check of thestaticmodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotBeStatic
Creates a new instance for a negative check of thestaticmodifier.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-