Package org.assertj.core.internal
Class UnambiguousRepresentation
- java.lang.Object
-
- org.assertj.core.internal.UnambiguousRepresentation
-
public class UnambiguousRepresentation extends java.lang.ObjectUtility class aroundRepresentationto provide thetoStringOfrepresentations ofactualandexpectedwhen they are different, and theirunambiguousToStringOfrepresentations if not.
-
-
Constructor Summary
Constructors Constructor Description UnambiguousRepresentation(Representation representation, java.lang.Object actual, java.lang.Object expected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActual()Provide a representation ofactualguaranteed to be different fromgetExpected().java.lang.StringgetExpected()Provide a representation ofexpectedguaranteed to be different fromgetActual().
-
-
-
Constructor Detail
-
UnambiguousRepresentation
public UnambiguousRepresentation(Representation representation, java.lang.Object actual, java.lang.Object expected)
-
-
Method Detail
-
getActual
public java.lang.String getActual()
Provide a representation ofactualguaranteed to be different fromgetExpected().- Returns:
- a suitable representation of the
actualobject given at construction time.
-
getExpected
public java.lang.String getExpected()
Provide a representation ofexpectedguaranteed to be different fromgetActual().- Returns:
- a suitable representation of the
expectedobject given at construction time.
-
-