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

public Class ShouldHaveSameClass

extends BasicErrorMessageFactory
Class Inheritance

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

Creates a new ShouldHaveSameClass.

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

Constructor Detail

ShouldHaveSameClassback to summary
private ShouldHaveSameClass(Object actual, Object other)

Method Detail

shouldHaveSameClassback to summary
public static ErrorMessageFactory shouldHaveSameClass(Object actual, Object other)

Creates a new ShouldHaveSameClass.

Parameters
actual:Object

the actual value in the failed assertion.

other:Object

the type actual is expected to be.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.