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
Author:
jaquino
  • 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<Test> 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()