Modifier and Type | Field and Description |
---|---|
private boolean |
ranAtLeastOnce |
private TestCase |
testCase |
private WKTWriter |
wktWriter |
Constructor and Description |
---|
TestRunnerTestCaseAdapter(TestCase testCase) |
private TestCase testCase
private boolean ranAtLeastOnce
private WKTWriter wktWriter
public TestRunnerTestCaseAdapter(TestCase testCase)
public void setGeometry(int index, Geometry g)
setGeometry
in interface Testable
public void setIntersectionMatrix(IntersectionMatrix im)
setIntersectionMatrix
in interface Testable
public void setExpectedIntersectionMatrix(java.lang.String expectedIntersectionMatrix)
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 expected)
public boolean isFailed()
public java.lang.String getFailedMsg()
public Geometry getGeometry(int index)
getGeometry
in interface Testable
public IntersectionMatrix getIntersectionMatrix()
getIntersectionMatrix
in interface Testable
public java.lang.String getDescription()
getDescription
in interface Testable
public boolean isPassed()
public java.lang.String getWellKnownText(int index)
getWellKnownText
in interface Testable
public TestCase getTestRunnerTestCase()
public java.lang.String getExpectedIntersectionMatrix()
public Geometry getExpectedConvexHull()
public Geometry getExpectedBoundary()
public Geometry getExpectedIntersection()
public Geometry getExpectedUnion()
public Geometry getExpectedDifference()
public Geometry getExpectedSymDifference()
public void runTest() throws ParseException
ParseException
public void initGeometry() throws ParseException
initGeometry
in interface Testable
ParseException
private void setExpectedSpatialFunction(java.lang.String opName, Geometry expectedGeometry)
private Test getOrCreateABTest(java.lang.String opName)
private Result getDefaultResult(java.lang.String opName)
private Test getABTest(java.lang.String opName)
private int maxTestIndex(TestCase testCase)