public class TestCase
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and 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 |
Constructor and Description |
---|
TestCase(java.lang.String description,
Geometry a,
Geometry b,
java.io.File aWktFile,
java.io.File bWktFile,
TestRun testRun,
int caseIndex,
int lineNumber)
Creates a TestCase with the given description.
|
Modifier and Type | Method and 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) |
private java.lang.String description
private Geometry a
private Geometry b
private java.util.Vector tests
private TestRun testRun
private int caseIndex
private int lineNumber
private java.io.File aWktFile
private java.io.File bWktFile
private boolean isRun
public int getLineNumber()
public void setGeometryA(Geometry a)
public void setGeometryB(Geometry b)
public void setDescription(java.lang.String description)
public boolean isRun()
public Geometry getGeometryA()
public Geometry getGeometryB()
public int getTestCount()
public java.util.List getTests()
public TestRun getTestRun()
public int getCaseIndex()
public java.lang.String getDescription()
public void add(Test test)
public void remove(Test test)
public void run()
run
in interface java.lang.Runnable
public java.lang.String toXml()