Interface OptionCollectionTest.OptionTest

Enclosing class:
OptionCollectionTest
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface OptionCollectionTest.OptionTest
Defines the test method that is stored in a map.
  • Method Details

    • exec

      void exec()
      Executes the test and uses fail or asserts to generate failures.
    • test

      default void test()
      Execute the test and ensure any failures have the test name added.
    • formatMsg

      default String formatMsg(String msg)
      Formats the messages by adding the test name.
      Parameters:
      msg - the message to reformat.
      Returns:
      the formatted message.
    • name

      default String name()
      Get the name of the test. By default, this method returns toString().
      Returns:
      the name of the test.
    • namedTest

      static OptionCollectionTest.OptionTest namedTest(String providerName, String name, OptionCollectionTest.OptionTest test)
      Creates a named OptionTest.
      Parameters:
      name - the name of the test.
      test - the test to execute.
      Returns:
      a named option test.