Package com.complexible.stardog.api.test
Class Test
- java.lang.Object
-
- com.complexible.stardog.api.test.Test
-
-
Field Summary
Fields Modifier and Type Field Description static int
UNDEFINED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
db()
long
expectedTime()
int
failureThreshold()
Threshold expressed as a percentage for specifing when a performance test will be considered failed.boolean
isIgnored()
java.lang.String
isReasoning()
boolean
isResultOrdered()
java.lang.String
name()
Returns the name of the test.java.lang.String
queryFile()
java.lang.String
queryStored()
java.lang.String
queryString()
int
resultCount()
java.lang.String
resultFile()
int
runs()
java.lang.String
server()
void
setDb(java.lang.String db)
void
setExpectedTime(long expectedTime)
void
setFailureThreshold(int failureThreshold)
void
setIgnored(boolean ignored)
void
setQueryFile(java.lang.String queryFile)
void
setQueryStored(java.lang.String queryStored)
void
setQueryString(java.lang.String queryString)
void
setReasoning(java.lang.String reasoning)
void
setResultCount(int resultCount)
void
setResultFile(java.lang.String resultFile)
void
setResultOrdered(boolean resultOrdered)
void
setRuns(int runs)
void
setServer(java.lang.String server)
void
setSuite(TestSuite suite)
void
setWarmups(int warmups)
TestSuite
suite()
void
test(java.util.function.Consumer<Test> tester)
Runs the tester function on every test included in the testable.java.lang.String
toString()
java.lang.String
toString(java.lang.String indent)
Returns an indented serialization of this object.int
warmups()
-
-
-
Field Detail
-
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:Testable
Returns the name of the test.
-
isIgnored
public boolean isIgnored()
-
setIgnored
public void setIgnored(boolean ignored)
-
test
public void test(java.util.function.Consumer<Test> tester)
Description copied from interface:Testable
Runs the tester function on every test included in the testable.
-
suite
public TestSuite suite()
-
setSuite
public void setSuite(TestSuite suite)
-
server
public java.lang.String server()
-
setServer
public void setServer(java.lang.String server)
-
db
public java.lang.String db()
-
setDb
public void setDb(java.lang.String db)
-
queryFile
public java.lang.String queryFile()
-
setQueryFile
public void setQueryFile(java.lang.String queryFile)
-
queryString
public java.lang.String queryString()
-
setQueryString
public void setQueryString(java.lang.String queryString)
-
queryStored
public java.lang.String queryStored()
-
setQueryStored
public void setQueryStored(java.lang.String queryStored)
-
isReasoning
public java.lang.String isReasoning()
-
setReasoning
public void setReasoning(java.lang.String reasoning)
-
resultFile
public java.lang.String resultFile()
-
setResultFile
public void setResultFile(java.lang.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 theexpectedTime
for a test is 100ms and the failure threshold is defined to be10
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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-