Class Test

java.lang.Object
com.complexible.stardog.api.test.Test
All Implemented Interfaces:
Testable

public class Test extends Object implements Testable
A single test that involves running a specific SPARQL query.
  • Field Details

  • Constructor Details

    • Test

      public Test()
    • Test

      public Test(Test that)
    • Test

      public Test(String name, Test that)
  • Method Details

    • name

      public String name()
      Description copied from interface: Testable
      Returns the name of the test.
      Specified by:
      name in interface Testable
    • isIgnored

      public boolean isIgnored()
    • setIgnored

      public void setIgnored(boolean ignored)
    • test

      public void test(Consumer<Test> tester)
      Description copied from interface: Testable
      Runs the tester function on every test included in the testable.
      Specified by:
      test in interface Testable
    • suite

      public TestSuite suite()
    • setSuite

      public void setSuite(TestSuite suite)
    • server

      public String server()
    • setServer

      public void setServer(String server)
    • db

      public String db()
    • setDb

      public void setDb(String db)
    • queryFile

      public String queryFile()
    • setQueryFile

      public void setQueryFile(String queryFile)
    • queryString

      public String queryString()
    • setQueryString

      public void setQueryString(String queryString)
    • queryStored

      public String queryStored()
    • setQueryStored

      public void setQueryStored(String queryStored)
    • isReasoning

      public String isReasoning()
    • setReasoning

      public void setReasoning(String reasoning)
    • resultFile

      public String resultFile()
    • setResultFile

      public void setResultFile(String resultFile)
    • resultCount

      public int resultCount()
    • setResultCount

      public void setResultCount(int resultCount)
    • isResultOrdered

      public boolean isResultOrdered()
    • setResultOrdered

      public void setResultOrdered(boolean resultOrdered)
    • warmups

      public int warmups()
    • setWarmups

      public void setWarmups(int warmups)
    • runs

      public int runs()
    • setRuns

      public void setRuns(int runs)
    • expectedTime

      public long expectedTime()
    • setExpectedTime

      public void setExpectedTime(long expectedTime)
    • failureThreshold

      public int failureThreshold()
      Threshold expressed as a percentage for specifing when a performance test will be considered failed. For example, if the expectedTime for a test is 100ms and the failure threshold is defined to be 10 then the there will be a performance failure if query execution takes more than 110ms. The percentage can be set to a value higher than 100 if the query execution time is known to fluctuate highly.
    • setFailureThreshold

      public void setFailureThreshold(int failureThreshold)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String indent)
      Description copied from interface: Testable
      Returns an indented serialization of this object.
      Specified by:
      toString in interface Testable