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

public Class ShouldNotBeInstanceOfAny

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 one or more types failed.
Author
Nicolas François

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
ShouldNotBeInstanceOfAny(Throwable throwable, Class<?>[] types)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeInstanceOfAny
(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 ShouldNotBeInstanceOfAny.

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

Constructor Detail

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

Method Detail

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

Creates a new ShouldNotBeInstanceOfAny.

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.