Class UnambiguousRepresentation

java.lang.Object
org.assertj.core.internal.UnambiguousRepresentation

public class UnambiguousRepresentation extends Object
Utility class around Representation to provide the toStringOf representations of actual and expected when they are different, and their unambiguousToStringOf representations if not.
  • Field Details

    • actual

      private final String actual
    • expected

      private final String expected
  • Constructor Details

  • Method Details

    • getActual

      public String getActual()
      Provide a representation of actual guaranteed to be different from getExpected().
      Returns:
      a suitable representation of the actual object given at construction time.
    • getExpected

      public String getExpected()
      Provide a representation of expected guaranteed to be different from getActual().
      Returns:
      a suitable representation of the expected object given at construction time.