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

public Class ShouldNotBeInstance

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
org.assertj.core.util.Throwables.getStackTrace

Creates an error message indicating that an assertion that verifies that an object is not an instance of some type failed.
Author
Nicolas François

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldNotBeInstance(Object actual, Class<?> type)

private
ShouldNotBeInstance(Throwable throwable, Class<?> type)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeInstance
(Object
the actual value in the failed assertion.
actual
,
Class<?>
the type actual is expected to belong to.
type
)

Creates a new ShouldNotBeInstance.

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

Constructor Detail

ShouldNotBeInstanceback to summary
private ShouldNotBeInstance(Object actual, Class<?> type)
ShouldNotBeInstanceback to summary
private ShouldNotBeInstance(Throwable throwable, Class<?> type)

Method Detail

shouldNotBeInstanceback to summary
public static ErrorMessageFactory shouldNotBeInstance(Object actual, Class<?> type)

Creates a new ShouldNotBeInstance.

Parameters
actual:Object

the actual value in the failed assertion.

type:Class<?>

the type actual is expected to belong to.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.