Package org.locationtech.jtstest.test
Class TestCase
java.lang.Object
org.locationtech.jtstest.test.TestCase
- All Implemented Interfaces:
Testable
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprivate Geometryprivate Geometryprivate Geometryprivate Geometryprotected Stringprivate Geometryprivate Geometryprivate Geometryprotected booleanprotected Stringprivate Geometry[]private IntersectionMatrixprotected booleanprotected Stringprivate PrecisionModelprivate Stringprivate Stringprivate WKTWriter -
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 TypeMethodDescription(package private) voidassertEquals(Object o1, Object o2, String msg) (package private) voidassertEqualsExact(Geometry g1, Geometry g2, String msg) (package private) voidassertTrue(boolean val, String msg) Geometry[]getGeometry(int index) getName()getWellKnownText(int i) (package private) voidinit(String name, String description, String wkta, String wktb, String expectedIM, Geometry expectedConvexHull, Geometry expectedIntersection, Geometry expectedUnion, Geometry expectedDifference, Geometry expectedSymDifference, Geometry expectedBoundary) voidbooleanisFailed()booleanisPassed()booleanisRun()(package private) IntersectionMatrixvoidrunTest()voidsetDescription(String description) voidsetExpectedBoundary(Geometry expectedBoundary) voidsetExpectedCentroid(Geometry expectedCentroid) 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) private GeometrytoNullOrGeometry(String wellKnownText)
-
Field Details
-
pm
-
wktWriter
-
name
-
description
-
expectedIM
-
isRun
protected boolean isRun -
failed
protected boolean failed -
failedMsg
-
expectedConvexHull
-
expectedBoundary
-
expectedIntersection
-
expectedUnion
-
expectedDifference
-
expectedSymDifference
-
expectedCentroid
-
im
-
geom
-
wkta
-
wktb
-
-
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
-
setExpectedCentroid
-
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
-
init
-
relate
-
assertEquals
-
assertEqualsExact
-
assertTrue
-
toNullOrGeometry
- Throws:
ParseException
-