Class Test
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.Test
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancomputePassed()ResultgetActualResult()Computes the actual result and caches the result value.StringgetArgument(int i)intgetArgumentCount()StringgetDescription()ExceptiongetException()ResultgetExpectedResult()StringgetGeometryIndex()StringgetOperation()TestCasegetTestCase()intgetTestIndex()booleanhasExpectedResult()booleanisPassed()Returns whether the Test is passed.booleanisRun()voidremoveArgument(int i)voidrun()voidsetArgument(int i, String value)voidsetResult(Result result)StringtoXml()
-
-
-
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()
-
-