Interface Testable

All Known Implementing Classes:
Test, TestSuite

public interface Testable
An object that represents a single test or a collection of tests. This is a generalization of Test and TestSuite.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the test.
    void
    test(Consumer<Test> tester)
    Runs the tester function on every test included in the testable.
    toString(String indent)
    Returns an indented serialization of this object.
  • Method Details

    • name

      String name()
      Returns the name of the test.
    • test

      void test(Consumer<Test> tester)
      Runs the tester function on every test included in the testable.
    • toString

      String toString(String indent)
      Returns an indented serialization of this object.