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

public Class ShouldBeExactlyInstanceOf

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that an object is 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.
shouldBeExactlyInstance
(Object
the actual value in the failed assertion.
actual
,
Class<?>
the type actual is expected to be.
type
)

Creates a new ShouldBeExactlyInstanceOf.

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

Constructor Detail

ShouldBeExactlyInstanceOfback to summary
private ShouldBeExactlyInstanceOf(Object actual, Class<?> type)
ShouldBeExactlyInstanceOfback to summary
private ShouldBeExactlyInstanceOf(Throwable throwable, Class<?> type)

Method Detail

shouldBeExactlyInstanceback to summary
public static ErrorMessageFactory shouldBeExactlyInstance(Object actual, Class<?> type)

Creates a new ShouldBeExactlyInstanceOf.

Parameters
actual:Object

the actual value in the failed assertion.

type:Class<?>

the type actual is expected to be.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.