Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldBeSealed

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a class is (or not) sealed.

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldBeSealed(Class<?> actual, boolean toBeOrNotToBe)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeSealed
(Class<?>
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeSealed.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeSealed
(Class<?>
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeSealed.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldBeSealedback to summary
private ShouldBeSealed(Class<?> actual, boolean toBeOrNotToBe)

Method Detail

shouldBeSealedback to summary
public static ErrorMessageFactory shouldBeSealed(Class<?> actual)

Creates a new ShouldBeSealed.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeSealedback to summary
public static ErrorMessageFactory shouldNotBeSealed(Class<?> actual)

Creates a new ShouldBeSealed.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.