Package org.locationtech.jtstest.test
Class TestCase
java.lang.Object
org.locationtech.jtstest.test.TestCase
- All Implemented Interfaces:
Testable
- Version:
- 1.7
-
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) void
boolean
isFailed()
boolean
isPassed()
boolean
isRun()
void
runTest()
void
setDescription
(String description) void
setExpectedBoundary
(Geometry expectedBoundary) void
setExpectedConvexHull
(Geometry expectedConvexHull) void
setExpectedDifference
(Geometry expectedDifference) void
setExpectedIntersection
(Geometry expectedIntersection) void
setExpectedIntersectionMatrix
(String expectedIntersectionMatrix) setExpectedRelateMatrix
(String expectedIntersectionMatrix) void
setExpectedSymDifference
(Geometry expectedSymDifference) void
setExpectedUnion
(Geometry expectedUnion) void
setGeometry
(int index, Geometry g) void
void
setTestName
(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:
setGeometry
in interfaceTestable
-
setPrecisionModel
-
setIntersectionMatrix
- Specified by:
setIntersectionMatrix
in interfaceTestable
-
setExpectedIntersectionMatrix
-
setExpectedRelateMatrix
-
setTestName
-
setName
-
setDescription
-
setExpectedConvexHull
-
setExpectedBoundary
-
setExpectedIntersection
-
setExpectedUnion
-
setExpectedDifference
-
setExpectedSymDifference
-
setExpectedIntersection
-
setExpectedBoundary
-
setA
-
setB
-
getGeometry
- Specified by:
getGeometry
in interfaceTestable
-
getIntersectionMatrix
- Specified by:
getIntersectionMatrix
in interfaceTestable
-
getExpectedIntersectionMatrix
-
getName
-
getDescription
- Specified by:
getDescription
in interfaceTestable
-
isFailed
public boolean isFailed() -
getFailedMsg
-
isPassed
public boolean isPassed() -
isRun
public boolean isRun() -
getWellKnownText
- Specified by:
getWellKnownText
in interfaceTestable
-
getExpectedConvexHull
-
getExpectedBoundary
-
getExpectedIntersection
-
getExpectedUnion
-
getExpectedDifference
-
getExpectedSymDifference
-
getGeometries
-
runTest
- Throws:
ParseException
-
initGeometry
- Specified by:
initGeometry
in interfaceTestable
- Throws:
ParseException
-