Class TestSuite

java.lang.Object
com.complexible.stardog.api.test.TestSuite
All Implemented Interfaces:
Testable

public class TestSuite extends Object implements Testable
A collection of tests organized in a hierarchical structure.
  • Constructor Details

  • Method Details

    • count

      public int count()
      Returns the total number of tests that are included directly or indirectly in this suite.
    • name

      public String name()
      Description copied from interface: Testable
      Returns the name of the test.
      Specified by:
      name in interface Testable
    • dir

      public Path dir()
      Return she base directory associated with this test suite. This base directory is used to resolve Test.queryFile() and Test.resultFile().
    • defaults

      public Test defaults()
      Return she default settings that wil lbe used for running the tests. The value of any test attribute not defined in the actual test will be looked up from these defaults.
    • tests

      public List<Testable> tests()
      Returns the list of testables that are directly included in this suite. The returned list might contain suites that have further tests in them.
    • test

      public void test(Consumer<Test> tester)
      Description copied from interface: Testable
      Runs the tester function on every test included in the testable.
      Specified by:
      test in interface Testable
    • toString

      public String toString(String indent)
      Description copied from interface: Testable
      Returns an indented serialization of this object.
      Specified by:
      toString in interface Testable
    • toString

      public String toString()
      Overrides:
      toString in class Object