Class TestCreator

java.lang.Object
com.complexible.stardog.api.test.TestCreator

public class TestCreator extends Object
Creates a TestSuite from query files in a directory. If the directory contains subdirectories then child suites are created for those directories.
  • Constructor Details

    • TestCreator

      public TestCreator(ConnectionConfiguration config, Test defaults, Set<TestCreator.CreateOption> options)
      Constructs a new test creator.
      Parameters:
      config - connection configuration for the database to run queries against
      defaults - default settings that will be used for the test
      options - options to specify if the test will check correctness, timings or both
  • Method Details

    • create

      public TestSuite create(Path path, String glob) throws IOException
      Creates a test suite from the query files in the given directory matching the specified glob expression. The queries will be executed against the connection specified in the constructor to compute expected results or expected time based on creation options.
      Throws:
      IOException