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

public Class ShouldNotBeExactlyInstanceOf

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 exactly an instance of some type failed.
Author
Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldNotBeExactlyInstanceOf.

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

Constructor Detail

ShouldNotBeExactlyInstanceOfback to summary
private ShouldNotBeExactlyInstanceOf(Object actual, Class<?> type)
ShouldNotBeExactlyInstanceOfback to summary
private ShouldNotBeExactlyInstanceOf(Throwable throwable, Class<?> type)

Method Detail

shouldNotBeExactlyInstanceback to summary
public static ErrorMessageFactory shouldNotBeExactlyInstance(Object actual, Class<?> type)

Creates a new ShouldNotBeExactlyInstanceOf.

Parameters
actual:Object

the actual value in the failed assertion.

type:Class<?>

the type actual is expected to be.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.