Package org.assertj.core.internal
Class UnambiguousRepresentation
- java.lang.Object
-
- org.assertj.core.internal.UnambiguousRepresentation
-
public class UnambiguousRepresentation extends Object
Utility class aroundRepresentation
to provide thetoStringOf
representations ofactual
andexpected
when they are different, and theirunambiguousToStringOf
representations if not.
-
-
Constructor Summary
Constructors Constructor Description UnambiguousRepresentation(Representation representation, Object actual, Object expected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActual()
Provide a representation ofactual
guaranteed to be different fromgetExpected()
.String
getExpected()
Provide a representation ofexpected
guaranteed to be different fromgetActual()
.
-
-
-
Constructor Detail
-
UnambiguousRepresentation
public UnambiguousRepresentation(Representation representation, Object actual, Object expected)
-
-
Method Detail
-
getActual
public String getActual()
Provide a representation ofactual
guaranteed to be different fromgetExpected()
.- Returns:
- a suitable representation of the
actual
object given at construction time.
-
getExpected
public String getExpected()
Provide a representation ofexpected
guaranteed to be different fromgetActual()
.- Returns:
- a suitable representation of the
expected
object given at construction time.
-
-