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 ErrorMessageFactory
shouldBeFinal
(Class<?> actual) Creates a new instance for a positive check of thefinal
modifier.static ErrorMessageFactory
shouldBePackagePrivate
(Class<?> actual) Creates a new instance for a positive check of thepackage-private
modifier.static ErrorMessageFactory
shouldBeProtected
(Class<?> actual) Creates a new instance for a positive check of theprotected
modifier.static ErrorMessageFactory
shouldBePublic
(Class<?> actual) Creates a new instance for a positive check of thepublic
modifier.static ErrorMessageFactory
shouldBeStatic
(Class<?> actual) Creates a new instance for a positive check of thestatic
modifier.static ErrorMessageFactory
shouldNotBeFinal
(Class<?> actual) Creates a new instance for a negative check of thefinal
modifier.static ErrorMessageFactory
shouldNotBeStatic
(Class<?> actual) Creates a new instance for a negative check of thestatic
modifier.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 thefinal
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotBeFinal
Creates a new instance for a negative check of thefinal
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBePublic
Creates a new instance for a positive check of thepublic
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeProtected
Creates a new instance for a positive check of theprotected
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBePackagePrivate
Creates a new instance for a positive check of thepackage-private
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeStatic
Creates a new instance for a positive check of thestatic
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotBeStatic
Creates a new instance for a negative check of thestatic
modifier.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-