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

public Class ShouldBeSame

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that two object refer to same object failed.
Author
Alex Ruiz

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldBeSame(Object actual, Object expected)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeSame
(Object
the actual value in the failed assertion.
actual
,
Object
the expected value in the failed assertion.
expected
)

Creates a new ShouldBeSame.

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

Constructor Detail

ShouldBeSameback to summary
private ShouldBeSame(Object actual, Object expected)

Method Detail

shouldBeSameback to summary
public static ErrorMessageFactory shouldBeSame(Object actual, Object expected)

Creates a new ShouldBeSame.

Parameters
actual:Object

the actual value in the failed assertion.

expected:Object

the expected value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.