Package com.complexible.stardog.api.test
Class Test
java.lang.Object
com.complexible.stardog.api.test.Test
- All Implemented Interfaces:
Testable
A single test that involves running a specific SPARQL query.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondb()longintThreshold expressed as a percentage for specifing when a performance test will be considered failed.booleanbooleanname()Returns the name of the test.intintruns()server()voidvoidsetExpectedTime(long expectedTime) voidsetFailureThreshold(int failureThreshold) voidsetIgnored(boolean ignored) voidsetQueryFile(String queryFile) voidsetQueryStored(String queryStored) voidsetQueryString(String queryString) voidsetReasoning(String reasoning) voidsetResultCount(int resultCount) voidsetResultFile(String resultFile) voidsetResultOrdered(boolean resultOrdered) voidsetRuns(int runs) voidvoidvoidsetWarmups(int warmups) suite()voidRuns the tester function on every test included in the testable.toString()Returns an indented serialization of this object.intwarmups()
-
Field Details
-
UNDEFINED
public static final int UNDEFINED- See Also:
-
-
Constructor Details
-
Test
public Test() -
Test
-
Test
-
-
Method Details
-
name
Description copied from interface:TestableReturns the name of the test. -
isIgnored
public boolean isIgnored() -
setIgnored
public void setIgnored(boolean ignored) -
test
Description copied from interface:TestableRuns the tester function on every test included in the testable. -
suite
-
setSuite
-
server
-
setServer
-
db
-
setDb
-
queryFile
-
setQueryFile
-
queryString
-
setQueryString
-
queryStored
-
setQueryStored
-
isReasoning
-
setReasoning
-
resultFile
-
setResultFile
-
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 theexpectedTimefor a test is 100ms and the failure threshold is defined to be10then 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
-
toString
Description copied from interface:TestableReturns an indented serialization of this object.
-