Class Test
java.lang.Object
org.locationtech.jtstest.testrunner.Test
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanComputes the actual result and caches the result value.getArgument(int i) intintbooleanbooleanisPassed()Returns whether the Test is passed.booleanisRun()voidremoveArgument(int i) voidrun()voidsetArgument(int i, String value) voidtoXml()
-
Constructor Details
-
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 Details
-
setResult
-
setArgument
-
getDescription
-
getGeometryIndex
-
getExpectedResult
-
hasExpectedResult
public boolean hasExpectedResult() -
getOperation
-
getTestIndex
public int getTestIndex() -
getArgument
-
getArgumentCount
public int getArgumentCount() -
isPassed
public boolean isPassed()Returns whether the Test is passed. -
getException
-
getTestCase
-
removeArgument
public void removeArgument(int i) -
run
-
isRun
public boolean isRun() -
computePassed
-
getActualResult
-
toXml
-