Package org.assertj.core.internal
Class UnambiguousRepresentation
- java.lang.Object
-
- org.assertj.core.internal.UnambiguousRepresentation
-
public class UnambiguousRepresentation extends Object
Utility class aroundRepresentationto provide thetoStringOfrepresentations ofactualandexpectedwhen they are different, and theirunambiguousToStringOfrepresentations 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 StringgetActual()Provide a representation ofactualguaranteed to be different fromgetExpected().StringgetExpected()Provide a representation ofexpectedguaranteed to be different fromgetActual().
-
-
-
Constructor Detail
-
UnambiguousRepresentation
public UnambiguousRepresentation(Representation representation, Object actual, Object expected)
-
-
Method Detail
-
getActual
public String getActual()
Provide a representation ofactualguaranteed to be different fromgetExpected().- Returns:
- a suitable representation of the
actualobject given at construction time.
-
getExpected
public String getExpected()
Provide a representation ofexpectedguaranteed to be different fromgetActual().- Returns:
- a suitable representation of the
expectedobject given at construction time.
-
-