Class TestCase
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.TestCase
-
- All Implemented Interfaces:
java.lang.Runnable
public class TestCase extends java.lang.Object implements java.lang.Runnable
A set of tests for two Geometry's.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private Geometry
a
private java.io.File
aWktFile
private Geometry
b
private java.io.File
bWktFile
private int
caseIndex
private java.lang.String
description
private boolean
isRun
private int
lineNumber
private TestRun
testRun
private java.util.Vector
tests
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Test test)
Adds a Test to the TestCase.int
getCaseIndex()
java.lang.String
getDescription()
Geometry
getGeometryA()
Geometry
getGeometryB()
int
getLineNumber()
int
getTestCount()
Returns the number of tests.TestRun
getTestRun()
java.util.List
getTests()
boolean
isRun()
void
remove(Test test)
void
run()
void
setDescription(java.lang.String description)
void
setGeometryA(Geometry a)
void
setGeometryB(Geometry b)
java.lang.String
toXml()
private java.lang.String
xml(java.lang.String id, Geometry g, java.io.File wktFile, WKTWriter writer)
-
-
-
Field Detail
-
description
private java.lang.String description
-
a
private Geometry a
-
b
private Geometry b
-
tests
private java.util.Vector tests
-
testRun
private TestRun testRun
-
caseIndex
private int caseIndex
-
lineNumber
private int lineNumber
-
aWktFile
private java.io.File aWktFile
-
bWktFile
private java.io.File bWktFile
-
isRun
private boolean isRun
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
-
setGeometryA
public void setGeometryA(Geometry a)
-
setGeometryB
public void setGeometryB(Geometry b)
-
setDescription
public void setDescription(java.lang.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 java.util.List getTests()
-
getTestRun
public TestRun getTestRun()
-
getCaseIndex
public int getCaseIndex()
-
getDescription
public java.lang.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 interfacejava.lang.Runnable
-
toXml
public java.lang.String toXml()
-
-