Class Test
java.lang.Object
org.locationtech.jtstest.testrunner.Test
- All Implemented Interfaces:
Runnable
A test for two geometries.
- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Computes the actual result and caches the result value.getArgument
(int i) int
int
boolean
boolean
isPassed()
Returns whether the Test is passed.boolean
isRun()
void
removeArgument
(int i) void
run()
void
setArgument
(int i, String value) void
toXml()
-
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
public void run() -
isRun
public boolean isRun() -
computePassed
- Throws:
Exception
-
getActualResult
Computes the actual result and caches the result value.- Returns:
- the actual result computed
- Throws:
Exception
- if the operation fails
-
toXml
-