Class TestRun
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.TestRun
-
- All Implemented Interfaces:
java.lang.Runnable
public class TestRun extends java.lang.Object implements java.lang.Runnable
- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
description
private GeometryOperation
geomOp
private PrecisionModel
precisionModel
private ResultMatcher
resultMatcher
private int
runIndex
private int
testCaseIndexToRun
private java.util.List
testCases
private java.io.File
testFile
private java.io.File
workspace
-
Constructor Summary
Constructors Constructor Description TestRun(java.lang.String description, int runIndex, PrecisionModel precisionModel, GeometryOperation geomOp, ResultMatcher resultMatcher, java.io.File testFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTestCase(TestCase testCase)
java.lang.String
getDescription()
GeometryOperation
getGeometryOperation()
PrecisionModel
getPrecisionModel()
ResultMatcher
getResultMatcher()
int
getRunIndex()
java.util.List
getTestCases()
int
getTestCount()
java.io.File
getTestFile()
java.io.File
getWorkspace()
void
run()
void
setTestCaseIndexToRun(int testCaseIndexToRun)
void
setWorkspace(java.io.File workspace)
-
-
-
Field Detail
-
testCaseIndexToRun
private int testCaseIndexToRun
-
description
private java.lang.String description
-
testCases
private java.util.List testCases
-
precisionModel
private PrecisionModel precisionModel
-
geomOp
private GeometryOperation geomOp
-
resultMatcher
private ResultMatcher resultMatcher
-
runIndex
private int runIndex
-
testFile
private java.io.File testFile
-
workspace
private java.io.File workspace
-
-
Constructor Detail
-
TestRun
public TestRun(java.lang.String description, int runIndex, PrecisionModel precisionModel, GeometryOperation geomOp, ResultMatcher resultMatcher, java.io.File testFile)
- Parameters:
description
-runIndex
-precisionModel
-geomOp
- a GeometryOperation to use for all tests in this run (may be null)testFile
-
-
-
Method Detail
-
setWorkspace
public void setWorkspace(java.io.File workspace)
-
setTestCaseIndexToRun
public void setTestCaseIndexToRun(int testCaseIndexToRun)
-
getWorkspace
public java.io.File getWorkspace()
- Returns:
- null if no workspace set
-
getTestCount
public int getTestCount()
-
getDescription
public java.lang.String getDescription()
-
getRunIndex
public int getRunIndex()
-
getPrecisionModel
public PrecisionModel getPrecisionModel()
-
getGeometryOperation
public GeometryOperation getGeometryOperation()
-
getResultMatcher
public ResultMatcher getResultMatcher()
-
getTestCases
public java.util.List getTestCases()
-
getTestFile
public java.io.File getTestFile()
-
addTestCase
public void addTestCase(TestCase testCase)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-