Package com.complexible.stardog.api.test
Class TestCreator
java.lang.Object
com.complexible.stardog.api.test.TestCreator
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 ClassesModifier and TypeClassDescriptionstatic enumOption to specify what the created tests will test -
Constructor Summary
ConstructorsConstructorDescriptionTestCreator(ConnectionConfiguration config, Test defaults, Set<TestCreator.CreateOption> options) Constructs a new test creator. -
Method Summary
-
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 againstdefaults- default settings that will be used for the testoptions- options to specify if the test will check correctness, timings or both
-
-
Method Details
-
create
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
-