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

public Class UnambiguousRepresentation

extends Object
Class Inheritance
Imports
java.util.Objects, org.assertj.core.presentation.Representation

Utility class around Representation to provide the toStringOf representations of actual and expected when they are different, and their unambiguousToStringOf representations if not.

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
UnambiguousRepresentation(Representation representation, Object actual, Object expected)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a suitable representation of the actual object given at construction time.
getActual
()

Provide a representation of actual guaranteed to be different from getExpected().

public String

Returns:

a suitable representation of the expected object given at construction time.
getExpected
()

Provide a representation of expected guaranteed to be different from getActual().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actualback to summary
private final String actual
expectedback to summary
private final String expected

Constructor Detail

UnambiguousRepresentationback to summary
public UnambiguousRepresentation(Representation representation, Object actual, Object expected)

Method Detail

getActualback to summary
public String getActual()

Provide a representation of actual guaranteed to be different from getExpected().

Returns:String

a suitable representation of the actual object given at construction time.

getExpectedback to summary
public String getExpected()

Provide a representation of expected guaranteed to be different from getActual().

Returns:String

a suitable representation of the expected object given at construction time.