Class TestCreator


  • public class TestCreator
    extends java.lang.Object
    Creates a TestSuite from query files in a directory. If the directory contains subdirectories then child suites are created for those directories.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TestCreator.CreateOption
      Option to specify what the created tests will test
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TestSuite create​(java.nio.file.Path path, java.lang.String glob)
      Creates a test suite from the query files in the given directory matching the specified glob expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestCreator

        public TestCreator​(ConnectionConfiguration config,
                           Test defaults,
                           java.util.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 Detail

      • create

        public TestSuite create​(java.nio.file.Path path,
                                java.lang.String glob)
                         throws java.io.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:
        java.io.IOException