All Known Subinterfaces:
ActualException<T>, ActualObject<T>
All Known Implementing Classes:
Nothing

public interface Actual

A type representing the actual behavior in a test.

  • Field Details

    • BRACKET_FORMATTER

      static final Function<String,String> BRACKET_FORMATTER
      A function enclosing a string with brackets.
  • Method Details

    • behavior

      Object behavior()

      Returns an object representing the behavior of the test.

      Returns:
      the object
    • successful

      boolean successful()
    • display

      default boolean display()
    • string

      default String string(Stringifier stringifier)

      Returns a string representation of the behavior under test using the given stringifier to make the behavior human-readable.

      Parameters:
      stringifier - the stringifier
      Returns:
      the string
    • of

      static Actual of(Object behavior, boolean successful)
    • successful

      static Actual successful(Object behavior)
    • unexpected

      static Actual unexpected(Object behavior)