Class Test
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.Test
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
computePassed()
Result
getActualResult()
Computes the actual result and caches the result value.String
getArgument(int i)
int
getArgumentCount()
String
getDescription()
Exception
getException()
Result
getExpectedResult()
String
getGeometryIndex()
String
getOperation()
TestCase
getTestCase()
int
getTestIndex()
boolean
hasExpectedResult()
boolean
isPassed()
Returns whether the Test is passed.boolean
isRun()
void
removeArgument(int i)
void
run()
void
setArgument(int i, String value)
void
setResult(Result result)
String
toXml()
-
-
-
Constructor Detail
-
Test
public Test(TestCase testCase, int testIndex, String description, String operation, String geometryIndex, List<String> arguments, Result expectedResult, double tolerance)
Creates a Test with the given description. The given operation (e.g. "equals") will be performed, the expected result of which is expectedResult.
-
-
Method Detail
-
setResult
public void setResult(Result result)
-
setArgument
public void setArgument(int i, String value)
-
getDescription
public String getDescription()
-
getGeometryIndex
public String getGeometryIndex()
-
getExpectedResult
public Result getExpectedResult()
-
hasExpectedResult
public boolean hasExpectedResult()
-
getOperation
public String getOperation()
-
getTestIndex
public int getTestIndex()
-
getArgument
public String getArgument(int i)
-
getArgumentCount
public int getArgumentCount()
-
isPassed
public boolean isPassed()
Returns whether the Test is passed.
-
getException
public Exception getException()
-
getTestCase
public TestCase getTestCase()
-
removeArgument
public void removeArgument(int i)
-
isRun
public boolean isRun()
-
getActualResult
public Result getActualResult() throws Exception
Computes the actual result and caches the result value.- Returns:
- the actual result computed
- Throws:
Exception
- if the operation fails
-
toXml
public String toXml()
-
-