Package com.complexible.stardog.api.test
Class TestRunner
java.lang.Object
com.complexible.stardog.api.test.TestRunner
Runs all the tests in a suite.
-
Constructor Summary
ConstructorsConstructorDescriptionTestRunner(ConnectionConfiguration config) Creates a test runner with the credentials specified in the given config. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidcompareTupleQueryResults(String name, boolean ordered, com.stardog.stark.query.impl.SelectQueryResultImpl actual, com.stardog.stark.query.impl.SelectQueryResultImpl expected) convertQueryResult(SelectQueryResult queryResult) booleanbooleanbooleanbooleanstatic booleanreadBooleanQueryResult(Path file) Runs all the tests in the given suite and returns the results.voidsetRunUpdateQueriesOnce(boolean runUpdateQueriesOnce) voidsetShowPlans(boolean showPlans) voidsetShowStackTraces(boolean showStackTraces) voidsetStopOnFirstFailure(boolean stopOnFirstFailure)
-
Constructor Details
-
TestRunner
Creates a test runner with the credentials specified in the given config. The server, database and reasoning settings in the configuration will be overridden by values specified in the tests.
-
-
Method Details
-
run
Runs all the tests in the given suite and returns the results. The tests that are included in child suites are also run. The results will be returned in the order the tests are run. -
readBooleanQueryResult
- Throws:
IOException
-
compareTupleQueryResults
public static void compareTupleQueryResults(String name, boolean ordered, com.stardog.stark.query.impl.SelectQueryResultImpl actual, com.stardog.stark.query.impl.SelectQueryResultImpl expected) -
convertQueryResult
public static com.google.common.collect.LinkedHashMultiset<Map<String,Value>> convertQueryResult(SelectQueryResult queryResult) -
compareGraphs
-
isShowPlans
public boolean isShowPlans() -
setShowPlans
public void setShowPlans(boolean showPlans) -
isStopOnFirstFailure
public boolean isStopOnFirstFailure() -
setStopOnFirstFailure
public void setStopOnFirstFailure(boolean stopOnFirstFailure) -
isRunUpdateQueriesOnce
public boolean isRunUpdateQueriesOnce() -
setRunUpdateQueriesOnce
public void setRunUpdateQueriesOnce(boolean runUpdateQueriesOnce) -
isShowStackTraces
public boolean isShowStackTraces() -
setShowStackTraces
public void setShowStackTraces(boolean showStackTraces)
-