java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
All Implemented Interfaces:
Actual, Expected

public final class Nothing extends Object implements Actual, Expected

A type representing no expected behavior.

  • Method Details

    • behavior

      public Object behavior()
      Description copied from interface: Actual

      Returns an object representing the behavior of the test.

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

      public boolean successful()
      Specified by:
      successful in interface Actual
    • display

      public boolean display()
      Specified by:
      display in interface Actual
      Specified by:
      display in interface Expected
    • string

      public String string(Stringifier stringifier)
      Description copied from interface: Actual

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

      Specified by:
      string in interface Actual
      Specified by:
      string in interface Expected
      Parameters:
      stringifier - the stringifier
      Returns:
      the string
    • nothing

      public static Nothing nothing()
    • text

      public static Nothing text()
    • text

      public static Nothing text(Object text)
    • items

      public static Nothing items(String prefixSingular, String prefixPlural, List<?> items, String suffixSingular, String suffixPlural)
    • items

      public static Nothing items(String prefix, List<?> items, String suffix)
    • items

      public static Nothing items(String prefix, List<?> items)
    • items

      public static Nothing items(List<?> list, String suffix)
    • items

      public static Nothing items(List<?> list)
    • items

      public static Nothing items(String prefixSingular, String prefixPlural, List<?> items)
    • items

      public static Nothing items(List<?> items, String suffixSingular, String suffixPlural)
    • successBehavior

      public static Nothing successBehavior()
    • successBehavior

      public static Nothing successBehavior(Object behavior)