Class TestCase

java.lang.Object
org.locationtech.jtstest.testrunner.TestCase
All Implemented Interfaces:
Runnable

public class TestCase extends Object implements Runnable
A set of tests for two Geometry's.
Version:
1.7
  • Field Details

    • description

      private String description
    • a

      private Geometry a
    • b

      private Geometry b
    • tests

      private Vector tests
    • testRun

      private TestRun testRun
    • caseIndex

      private int caseIndex
    • lineNumber

      private int lineNumber
    • aWktFile

      private File aWktFile
    • bWktFile

      private File bWktFile
    • isRun

      private boolean isRun
  • Constructor Details

    • TestCase

      public TestCase(String description, Geometry a, Geometry b, File aWktFile, File bWktFile, TestRun testRun, int caseIndex, int lineNumber)
      Creates a TestCase with the given description. The tests will be applied to a and b.
  • Method Details

    • getLineNumber

      public int getLineNumber()
    • setGeometryA

      public void setGeometryA(Geometry a)
    • setGeometryB

      public void setGeometryB(Geometry b)
    • setDescription

      public void setDescription(String description)
    • isRun

      public boolean isRun()
    • getGeometryA

      public Geometry getGeometryA()
    • getGeometryB

      public Geometry getGeometryB()
    • getTestCount

      public int getTestCount()
      Returns the number of tests.
      Returns:
      The testCount value
    • getTests

      public List getTests()
    • getTestRun

      public TestRun getTestRun()
    • getCaseIndex

      public int getCaseIndex()
    • getDescription

      public String getDescription()
    • add

      public void add(Test test)
      Adds a Test to the TestCase.
    • remove

      public void remove(Test test)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • toXml

      public String toXml()
    • xml

      private String xml(String id, Geometry g, File wktFile, WKTWriter writer)