public class ClassModifierShouldBe extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeFinal(Class<?> actual)
Creates a new instance for a positive check of the
final modifier. |
static ErrorMessageFactory |
shouldBePackagePrivate(Class<?> actual)
Creates a new instance for a positive check of the
package-private modifier. |
static ErrorMessageFactory |
shouldBeProtected(Class<?> actual)
Creates a new instance for a positive check of the
protected modifier. |
static ErrorMessageFactory |
shouldBePublic(Class<?> actual)
Creates a new instance for a positive check of the
public modifier. |
static ErrorMessageFactory |
shouldBeStatic(Class<?> actual)
Creates a new instance for a positive check of the
static modifier. |
static ErrorMessageFactory |
shouldNotBeFinal(Class<?> actual)
Creates a new instance for a negative check of the
final modifier. |
static ErrorMessageFactory |
shouldNotBeStatic(Class<?> actual)
Creates a new instance for a negative check of the
static modifier. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeFinal(Class<?> actual)
final modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldNotBeFinal(Class<?> actual)
final modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldBePublic(Class<?> actual)
public modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldBeProtected(Class<?> actual)
protected modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldBePackagePrivate(Class<?> actual)
package-private modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldBeStatic(Class<?> actual)
static modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldNotBeStatic(Class<?> actual)
static modifier.actual - the actual value in the failed assertion.ErrorMessageFactory.Copyright © 2025. All rights reserved.