Class TestCase
java.lang.Object
org.locationtech.jtstest.test.TestCase
- All Implemented Interfaces:
Testable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestCase()TestCase(String name, String description, String wkta, String wktb, String expectedIM, String expectedConvexHull, String expectedIntersection, String expectedUnion, String expectedDifference, String expectedSymDifference) TestCase(String name, String description, String wkta, String wktb, String expectedIM, String expectedConvexHull, String expectedIntersection, String expectedUnion, String expectedDifference, String expectedSymDifference, String expectedBoundary) -
Method Summary
Modifier and TypeMethodDescriptionGeometry[]getGeometry(int index) getName()getWellKnownText(int i) voidbooleanisFailed()booleanisPassed()booleanisRun()voidrunTest()voidsetDescription(String description) voidsetExpectedBoundary(Geometry expectedBoundary) voidsetExpectedConvexHull(Geometry expectedConvexHull) voidsetExpectedDifference(Geometry expectedDifference) voidsetExpectedIntersection(Geometry expectedIntersection) voidsetExpectedIntersectionMatrix(String expectedIntersectionMatrix) setExpectedRelateMatrix(String expectedIntersectionMatrix) voidsetExpectedSymDifference(Geometry expectedSymDifference) voidsetExpectedUnion(Geometry expectedUnion) voidsetGeometry(int index, Geometry g) voidvoidsetTestName(String name)
-
Field Details
-
name
-
description
-
expectedIM
-
isRun
protected boolean isRun -
failed
protected boolean failed -
failedMsg
-
-
Constructor Details
-
TestCase
public TestCase() -
TestCase
-
TestCase
-
TestCase
-
TestCase
-
TestCase
-
-
Method Details
-
setGeometry
- Specified by:
setGeometryin interfaceTestable
-
setPrecisionModel
-
setIntersectionMatrix
- Specified by:
setIntersectionMatrixin interfaceTestable
-
setExpectedIntersectionMatrix
-
setExpectedRelateMatrix
-
setTestName
-
setName
-
setDescription
-
setExpectedConvexHull
-
setExpectedBoundary
-
setExpectedIntersection
-
setExpectedUnion
-
setExpectedDifference
-
setExpectedSymDifference
-
setExpectedIntersection
-
setExpectedBoundary
-
setA
-
setB
-
getGeometry
- Specified by:
getGeometryin interfaceTestable
-
getIntersectionMatrix
- Specified by:
getIntersectionMatrixin interfaceTestable
-
getExpectedIntersectionMatrix
-
getName
-
getDescription
- Specified by:
getDescriptionin interfaceTestable
-
isFailed
public boolean isFailed() -
getFailedMsg
-
isPassed
public boolean isPassed() -
isRun
public boolean isRun() -
getWellKnownText
- Specified by:
getWellKnownTextin interfaceTestable
-
getExpectedConvexHull
-
getExpectedBoundary
-
getExpectedIntersection
-
getExpectedUnion
-
getExpectedDifference
-
getExpectedSymDifference
-
getGeometries
-
runTest
- Throws:
ParseException
-
initGeometry
- Specified by:
initGeometryin interfaceTestable- Throws:
ParseException
-