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

public Class ShouldNotHaveSameClass

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that an object has same class as another instance failed.
Author
Nicolas François

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotHaveSameClass
(Object
the actual value in the failed assertion.
actual
,
Object
the type actual is expected to be.
other
)

Creates a new ShouldNotHaveSameClass.

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

Constructor Detail

ShouldNotHaveSameClassback to summary
private ShouldNotHaveSameClass(Object actual, Object other)

Method Detail

shouldNotHaveSameClassback to summary
public static ErrorMessageFactory shouldNotHaveSameClass(Object actual, Object other)

Creates a new ShouldNotHaveSameClass.

Parameters
actual:Object

the actual value in the failed assertion.

other:Object

the type actual is expected to be.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.