Interface ActualObject<T>

All Superinterfaces:
Actual
All Known Subinterfaces:
ActualException<T>

public interface ActualObject<T> extends Actual

A type representing the actual object in a test.

  • Field Summary

    Fields inherited from interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual

    BRACKET_FORMATTER
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the object under test.
    default T
    Returns the object under test.
    static <T> ActualObject<T>
    of(T object, boolean successful)
     
    static <T> ActualObject<T>
    of(T object, boolean successful, Function<String,String> formatter)
    Returns an instance representing a behavior where the given object was tested or, if no object was given, an behavior where no object was returned.

    Methods inherited from interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual

    display, string, successful
  • Method Details

    • of

      static <T> ActualObject<T> of(T object, boolean successful, Function<String,String> formatter)

      Returns an instance representing a behavior where the given object was tested or, if no object was given, an behavior where no object was returned.

      Type Parameters:
      T - the type of the object
      Parameters:
      object - the object
      Returns:
      the object behavior
    • of

      static <T> ActualObject<T> of(T object, boolean successful)
    • behavior

      T behavior()

      Returns the object under test.

      Specified by:
      behavior in interface Actual
      Returns:
      the object
    • object

      default T object()

      Returns the object under test.

      Returns:
      the object