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 String
private Geometry
private Geometry
private Geometry
private Geometry
protected String
private Geometry
private Geometry
private Geometry
protected boolean
protected String
private Geometry[]
private IntersectionMatrix
protected boolean
protected String
private PrecisionModel
private String
private String
private 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) void
assertEquals
(Object o1, Object o2, String msg) (package private) void
assertEqualsExact
(Geometry g1, Geometry g2, String msg) (package private) void
assertTrue
(boolean val, String msg) Geometry[]
getGeometry
(int index) getName()
getWellKnownText
(int i) (package private) void
init
(String name, String description, String wkta, String wktb, String expectedIM, Geometry expectedConvexHull, Geometry expectedIntersection, Geometry expectedUnion, Geometry expectedDifference, Geometry expectedSymDifference, Geometry expectedBoundary) void
boolean
isFailed()
boolean
isPassed()
boolean
isRun()
(package private) IntersectionMatrix
void
runTest()
void
setDescription
(String description) void
setExpectedBoundary
(Geometry expectedBoundary) void
setExpectedCentroid
(Geometry expectedCentroid) 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) private Geometry
toNullOrGeometry
(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:
setGeometry
in interfaceTestable
-
setPrecisionModel
-
setIntersectionMatrix
- Specified by:
setIntersectionMatrix
in interfaceTestable
-
setExpectedIntersectionMatrix
-
setExpectedRelateMatrix
-
setTestName
-
setName
-
setDescription
-
setExpectedConvexHull
-
setExpectedBoundary
-
setExpectedIntersection
-
setExpectedUnion
-
setExpectedDifference
-
setExpectedSymDifference
-
setExpectedCentroid
-
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
-
init
-
relate
-
assertEquals
-
assertEqualsExact
-
assertTrue
-
toNullOrGeometry
- Throws:
ParseException
-