Package com.complexible.stardog.api.test
Class TestCreator
- java.lang.Object
-
- com.complexible.stardog.api.test.TestCreator
-
public class TestCreator extends java.lang.Object
Creates aTestSuite
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
-
Constructor Summary
Constructors Constructor Description TestCreator(ConnectionConfiguration config, Test defaults, java.util.Set<TestCreator.CreateOption> options)
Constructs a new test creator.
-
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.
-
-
-
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 againstdefaults
- default settings that will be used for the testoptions
- 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
-
-