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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String name()
      Returns the name of the test.
      void test​(java.util.function.Consumer<Test> tester)
      Runs the tester function on every test included in the testable.
      java.lang.String toString​(java.lang.String indent)
      Returns an indented serialization of this object.
    • Method Detail

      • name

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

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

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