Package org.locationtech.jtstest.test
Class TestCase
- java.lang.Object
-
- org.locationtech.jtstest.test.TestCase
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected String
expectedIM
protected boolean
failed
protected String
failedMsg
protected boolean
isRun
protected String
name
-
Constructor Summary
Constructors Constructor Description TestCase()
TestCase(String name)
TestCase(String name, String description, String wkta, String wktb, String expectedIM)
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)
TestCase(TestCase tc)
-
Method Summary
-
-
-
Constructor Detail
-
TestCase
public TestCase()
-
TestCase
public TestCase(String name)
-
TestCase
public TestCase(String name, String description, String wkta, String wktb, String expectedIM)
-
TestCase
public TestCase(String name, String description, String wkta, String wktb, String expectedIM, String expectedConvexHull, String expectedIntersection, String expectedUnion, String expectedDifference, String expectedSymDifference)
-
TestCase
public TestCase(String name, String description, String wkta, String wktb, String expectedIM, String expectedConvexHull, String expectedIntersection, String expectedUnion, String expectedDifference, String expectedSymDifference, String expectedBoundary)
-
TestCase
public TestCase(TestCase tc)
-
-
Method Detail
-
setGeometry
public void setGeometry(int index, Geometry g)
- Specified by:
setGeometry
in interfaceTestable
-
setPrecisionModel
public TestCase setPrecisionModel(PrecisionModel pm)
-
setIntersectionMatrix
public void setIntersectionMatrix(IntersectionMatrix im)
- Specified by:
setIntersectionMatrix
in interfaceTestable
-
setExpectedIntersectionMatrix
public void setExpectedIntersectionMatrix(String expectedIntersectionMatrix)
-
setDescription
public void setDescription(String description)
-
setExpectedConvexHull
public void setExpectedConvexHull(Geometry expectedConvexHull)
-
setExpectedBoundary
public void setExpectedBoundary(Geometry expectedBoundary)
-
setExpectedIntersection
public void setExpectedIntersection(Geometry expectedIntersection)
-
setExpectedUnion
public void setExpectedUnion(Geometry expectedUnion)
-
setExpectedDifference
public void setExpectedDifference(Geometry expectedDifference)
-
setExpectedSymDifference
public void setExpectedSymDifference(Geometry expectedSymDifference)
-
getGeometry
public Geometry getGeometry(int index)
- Specified by:
getGeometry
in interfaceTestable
-
getIntersectionMatrix
public IntersectionMatrix getIntersectionMatrix()
- Specified by:
getIntersectionMatrix
in interfaceTestable
-
getExpectedIntersectionMatrix
public String getExpectedIntersectionMatrix()
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceTestable
-
isFailed
public boolean isFailed()
-
getFailedMsg
public String getFailedMsg()
-
isPassed
public boolean isPassed()
-
isRun
public boolean isRun()
-
getWellKnownText
public String getWellKnownText(int i)
- Specified by:
getWellKnownText
in interfaceTestable
-
getExpectedConvexHull
public Geometry getExpectedConvexHull()
-
getExpectedBoundary
public Geometry getExpectedBoundary()
-
getExpectedIntersection
public Geometry getExpectedIntersection()
-
getExpectedUnion
public Geometry getExpectedUnion()
-
getExpectedDifference
public Geometry getExpectedDifference()
-
getExpectedSymDifference
public Geometry getExpectedSymDifference()
-
getGeometries
public Geometry[] getGeometries()
-
runTest
public void runTest() throws ParseException
- Throws:
ParseException
-
initGeometry
public void initGeometry() throws ParseException
- Specified by:
initGeometry
in interfaceTestable
- Throws:
ParseException
-
-