Class TestRunner

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

public class TestRunner extends Object
Runs all the tests in a suite.
  • Constructor Details

    • TestRunner

      public TestRunner(ConnectionConfiguration config)
      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

      public List<TestResult> run(TestSuite suite)
      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

      public static boolean readBooleanQueryResult(Path file) throws IOException
      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

      public static void compareGraphs(String name, Set<Statement> actual, Set<Statement> expected)
    • 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)