Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
private Geometry |
expectedBoundary |
private Geometry |
expectedCentroid |
private Geometry |
expectedConvexHull |
private Geometry |
expectedDifference |
protected java.lang.String |
expectedIM |
private Geometry |
expectedIntersection |
private Geometry |
expectedSymDifference |
private Geometry |
expectedUnion |
protected boolean |
failed |
protected java.lang.String |
failedMsg |
private Geometry[] |
geom |
private IntersectionMatrix |
im |
protected boolean |
isRun |
protected java.lang.String |
name |
private PrecisionModel |
pm |
private java.lang.String |
wkta |
private java.lang.String |
wktb |
private WKTWriter |
wktWriter |
Constructor and Description |
---|
TestCase() |
TestCase(java.lang.String name) |
TestCase(java.lang.String name,
java.lang.String description,
java.lang.String wkta,
java.lang.String wktb,
java.lang.String expectedIM) |
TestCase(java.lang.String name,
java.lang.String description,
java.lang.String wkta,
java.lang.String wktb,
java.lang.String expectedIM,
java.lang.String expectedConvexHull,
java.lang.String expectedIntersection,
java.lang.String expectedUnion,
java.lang.String expectedDifference,
java.lang.String expectedSymDifference) |
TestCase(java.lang.String name,
java.lang.String description,
java.lang.String wkta,
java.lang.String wktb,
java.lang.String expectedIM,
java.lang.String expectedConvexHull,
java.lang.String expectedIntersection,
java.lang.String expectedUnion,
java.lang.String expectedDifference,
java.lang.String expectedSymDifference,
java.lang.String expectedBoundary) |
TestCase(TestCase tc) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
assertEquals(java.lang.Object o1,
java.lang.Object o2,
java.lang.String msg) |
(package private) void |
assertEqualsExact(Geometry g1,
Geometry g2,
java.lang.String msg) |
(package private) void |
assertTrue(boolean val,
java.lang.String msg) |
java.lang.String |
getDescription() |
Geometry |
getExpectedBoundary() |
Geometry |
getExpectedConvexHull() |
Geometry |
getExpectedDifference() |
Geometry |
getExpectedIntersection() |
java.lang.String |
getExpectedIntersectionMatrix() |
Geometry |
getExpectedSymDifference() |
Geometry |
getExpectedUnion() |
java.lang.String |
getFailedMsg() |
Geometry[] |
getGeometries() |
Geometry |
getGeometry(int index) |
IntersectionMatrix |
getIntersectionMatrix() |
java.lang.String |
getName() |
java.lang.String |
getWellKnownText(int i) |
(package private) void |
init(java.lang.String name,
java.lang.String description,
java.lang.String wkta,
java.lang.String wktb,
java.lang.String expectedIM,
Geometry expectedConvexHull,
Geometry expectedIntersection,
Geometry expectedUnion,
Geometry expectedDifference,
Geometry expectedSymDifference,
Geometry expectedBoundary) |
void |
initGeometry() |
boolean |
isFailed() |
boolean |
isPassed() |
boolean |
isRun() |
(package private) IntersectionMatrix |
relate(Geometry a,
Geometry b) |
void |
runTest() |
TestCase |
setA(java.lang.String wkta) |
TestCase |
setB(java.lang.String wktb) |
void |
setDescription(java.lang.String description) |
void |
setExpectedBoundary(Geometry expectedBoundary) |
TestCase |
setExpectedBoundary(java.lang.String wkt) |
void |
setExpectedCentroid(Geometry expectedCentroid) |
void |
setExpectedConvexHull(Geometry expectedConvexHull) |
void |
setExpectedDifference(Geometry expectedDifference) |
void |
setExpectedIntersection(Geometry expectedIntersection) |
TestCase |
setExpectedIntersection(java.lang.String wkt) |
void |
setExpectedIntersectionMatrix(java.lang.String expectedIntersectionMatrix) |
TestCase |
setExpectedRelateMatrix(java.lang.String expectedIntersectionMatrix) |
void |
setExpectedSymDifference(Geometry expectedSymDifference) |
void |
setExpectedUnion(Geometry expectedUnion) |
void |
setGeometry(int index,
Geometry g) |
void |
setIntersectionMatrix(IntersectionMatrix im) |
void |
setName(java.lang.String name) |
TestCase |
setPrecisionModel(PrecisionModel pm) |
TestCase |
setTestName(java.lang.String name) |
private Geometry |
toNullOrGeometry(java.lang.String wellKnownText) |
private PrecisionModel pm
private WKTWriter wktWriter
protected java.lang.String name
protected java.lang.String description
protected java.lang.String expectedIM
protected boolean isRun
protected boolean failed
protected java.lang.String failedMsg
private Geometry expectedConvexHull
private Geometry expectedBoundary
private Geometry expectedIntersection
private Geometry expectedUnion
private Geometry expectedDifference
private Geometry expectedSymDifference
private Geometry expectedCentroid
private IntersectionMatrix im
private Geometry[] geom
private java.lang.String wkta
private java.lang.String wktb
public TestCase()
public TestCase(java.lang.String name)
public TestCase(java.lang.String name, java.lang.String description, java.lang.String wkta, java.lang.String wktb, java.lang.String expectedIM)
public TestCase(java.lang.String name, java.lang.String description, java.lang.String wkta, java.lang.String wktb, java.lang.String expectedIM, java.lang.String expectedConvexHull, java.lang.String expectedIntersection, java.lang.String expectedUnion, java.lang.String expectedDifference, java.lang.String expectedSymDifference)
public TestCase(java.lang.String name, java.lang.String description, java.lang.String wkta, java.lang.String wktb, java.lang.String expectedIM, java.lang.String expectedConvexHull, java.lang.String expectedIntersection, java.lang.String expectedUnion, java.lang.String expectedDifference, java.lang.String expectedSymDifference, java.lang.String expectedBoundary)
public TestCase(TestCase tc)
public void setGeometry(int index, Geometry g)
setGeometry
in interface Testable
public TestCase setPrecisionModel(PrecisionModel pm)
public void setIntersectionMatrix(IntersectionMatrix im)
setIntersectionMatrix
in interface Testable
public void setExpectedIntersectionMatrix(java.lang.String expectedIntersectionMatrix)
public TestCase setExpectedRelateMatrix(java.lang.String expectedIntersectionMatrix)
public TestCase setTestName(java.lang.String name)
public void setDescription(java.lang.String description)
public void setExpectedConvexHull(Geometry expectedConvexHull)
public void setExpectedBoundary(Geometry expectedBoundary)
public void setExpectedIntersection(Geometry expectedIntersection)
public void setExpectedUnion(Geometry expectedUnion)
public void setExpectedDifference(Geometry expectedDifference)
public void setExpectedSymDifference(Geometry expectedSymDifference)
public void setExpectedCentroid(Geometry expectedCentroid)
public TestCase setExpectedIntersection(java.lang.String wkt)
public TestCase setExpectedBoundary(java.lang.String wkt)
public TestCase setA(java.lang.String wkta)
public TestCase setB(java.lang.String wktb)
public Geometry getGeometry(int index)
getGeometry
in interface Testable
public IntersectionMatrix getIntersectionMatrix()
getIntersectionMatrix
in interface Testable
public java.lang.String getExpectedIntersectionMatrix()
public java.lang.String getDescription()
getDescription
in interface Testable
public boolean isFailed()
public java.lang.String getFailedMsg()
public boolean isPassed()
public boolean isRun()
public java.lang.String getWellKnownText(int i)
getWellKnownText
in interface Testable
public Geometry getExpectedConvexHull()
public Geometry getExpectedBoundary()
public Geometry getExpectedIntersection()
public Geometry getExpectedUnion()
public Geometry getExpectedDifference()
public Geometry getExpectedSymDifference()
public Geometry[] getGeometries()
public void runTest() throws ParseException
ParseException
public void initGeometry() throws ParseException
initGeometry
in interface Testable
ParseException
void init(java.lang.String name, java.lang.String description, java.lang.String wkta, java.lang.String wktb, java.lang.String expectedIM, Geometry expectedConvexHull, Geometry expectedIntersection, Geometry expectedUnion, Geometry expectedDifference, Geometry expectedSymDifference, Geometry expectedBoundary)
IntersectionMatrix relate(Geometry a, Geometry b)
void assertEquals(java.lang.Object o1, java.lang.Object o2, java.lang.String msg)
void assertTrue(boolean val, java.lang.String msg)
private Geometry toNullOrGeometry(java.lang.String wellKnownText) throws ParseException
ParseException