Class TestCase

java.lang.Object
org.locationtech.jtstest.test.TestCase
All Implemented Interfaces:
Testable

public class TestCase extends Object implements Testable
Version:
1.7
  • Field Details

    • name

      protected String name
    • description

      protected String description
    • expectedIM

      protected String expectedIM
    • isRun

      protected boolean isRun
    • failed

      protected boolean failed
    • failedMsg

      protected String failedMsg
  • Constructor Details

  • Method Details

    • setGeometry

      public void setGeometry(int index, Geometry g)
      Specified by:
      setGeometry in interface Testable
    • setPrecisionModel

      public TestCase setPrecisionModel(PrecisionModel pm)
    • setIntersectionMatrix

      public void setIntersectionMatrix(IntersectionMatrix im)
      Specified by:
      setIntersectionMatrix in interface Testable
    • setExpectedIntersectionMatrix

      public void setExpectedIntersectionMatrix(String expectedIntersectionMatrix)
    • setExpectedRelateMatrix

      public TestCase setExpectedRelateMatrix(String expectedIntersectionMatrix)
    • setTestName

      public TestCase setTestName(String name)
    • setName

      public void setName(String name)
      Specified by:
      setName in interface Testable
    • 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)
    • setExpectedIntersection

      public TestCase setExpectedIntersection(String wkt)
    • setExpectedBoundary

      public TestCase setExpectedBoundary(String wkt)
    • setA

      public TestCase setA(String wkta)
    • setB

      public TestCase setB(String wktb)
    • getGeometry

      public Geometry getGeometry(int index)
      Specified by:
      getGeometry in interface Testable
    • getIntersectionMatrix

      public IntersectionMatrix getIntersectionMatrix()
      Specified by:
      getIntersectionMatrix in interface Testable
    • getExpectedIntersectionMatrix

      public String getExpectedIntersectionMatrix()
    • getName

      public String getName()
      Specified by:
      getName in interface Testable
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface Testable
    • 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 interface Testable
    • 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 interface Testable
      Throws:
      ParseException