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

public Class ShouldBeInstanceOfAny

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that an object is an instance of one or more types failed.
Authors
Alex Ruiz, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldBeInstanceOfAny(Object actual, Class<?>[] types)

private
ShouldBeInstanceOfAny(Throwable throwable, Class<?>[] types)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeInstanceOfAny
(Object
the actual value in the failed assertion.
actual
,
Class<?>[]
contains the type or types actual is expected to belong to.
types
)

Creates a new ShouldBeInstanceOfAny.

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

Constructor Detail

ShouldBeInstanceOfAnyback to summary
private ShouldBeInstanceOfAny(Object actual, Class<?>[] types)
ShouldBeInstanceOfAnyback to summary
private ShouldBeInstanceOfAny(Throwable throwable, Class<?>[] types)

Method Detail

shouldBeInstanceOfAnyback to summary
public static ErrorMessageFactory shouldBeInstanceOfAny(Object actual, Class<?>[] types)

Creates a new ShouldBeInstanceOfAny.

Parameters
actual:Object

the actual value in the failed assertion.

types:Class<?>[]

contains the type or types actual is expected to belong to.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.