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

public Class ShouldBeInterface

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a class is (or not) an interface.
Author
William Delanoue

Field Summary

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldBeInterface.

public static ErrorMessageFactory

Returns:

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

Creates a new ShouldBeInterface.

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

Constructor Detail

ShouldBeInterfaceback to summary
private ShouldBeInterface(Class<?> actual, boolean toBeOrNotToBe)

Method Detail

shouldBeInterfaceback to summary
public static ErrorMessageFactory shouldBeInterface(Class<?> actual)

Creates a new ShouldBeInterface.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeInterfaceback to summary
public static ErrorMessageFactory shouldNotBeInterface(Class<?> actual)

Creates a new ShouldBeInterface.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.