public class JTSTestRunnerCmd
extends java.lang.Object
Command Line Options
-files { <fileOrDirectoryName> } | req | Specifies the XML test files to run |
-geomop <classname> | opt | Specifies a custom
GeometryOperation to be used |
-testCaseIndex <num> | opt | Specifies the index of a single test to run |
-verbose | opt | Provides verbose output |
Modifier and Type | Class and Description |
---|---|
private static class |
JTSTestRunnerCmd.TestRunnerOptions |
Modifier and Type | Field and Description |
---|---|
private static GeometryOperation |
defaultOp |
private static ResultMatcher |
defaultResultMatcher |
private TestEngine |
engine |
private static GeometryFunctionRegistry |
funcRegistry |
private static GeometryOperation |
geometryOp |
private static java.lang.String |
OPT_FILES |
private static java.lang.String |
OPT_GEOMFUNC |
private static java.lang.String |
OPT_GEOMOP |
private static java.lang.String |
OPT_PROPERTIES |
private static java.lang.String |
OPT_TESTCASEINDEX |
private static java.lang.String |
OPT_VERBOSE |
private static java.lang.String |
PROPERTY_TESTFILES |
private static ResultMatcher |
resultMatcher |
Constructor and Description |
---|
JTSTestRunnerCmd() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
cmdOptionArgList(CommandLine commandLine,
java.lang.String optionName) |
private static CommandLine |
createCommandLine() |
private static java.util.List<java.lang.String> |
extractTestFilenames(CommandLine commandLine) |
static GeometryOperation |
getGeometryOperation() |
static ResultMatcher |
getResultMatcher() |
static boolean |
isGeometryOperationSpecified()
Tests whether a GeometryOperation was specified on the command line
|
static boolean |
isResultMatcherSpecified()
Tests whether a
ResultMatcher was specified on the command line |
static void |
main(java.lang.String[] args) |
private static void |
printHelp() |
private static JTSTestRunnerCmd.TestRunnerOptions |
readOptions(java.lang.String[] args) |
private java.lang.String |
report(boolean isVerbose) |
private void |
run(JTSTestRunnerCmd.TestRunnerOptions options) |
private static final java.lang.String PROPERTY_TESTFILES
private static final java.lang.String OPT_FILES
private static final java.lang.String OPT_GEOMFUNC
private static final java.lang.String OPT_GEOMOP
private static final java.lang.String OPT_PROPERTIES
private static final java.lang.String OPT_TESTCASEINDEX
private static final java.lang.String OPT_VERBOSE
private static GeometryFunctionRegistry funcRegistry
private static GeometryOperation defaultOp
private static GeometryOperation geometryOp
private static ResultMatcher defaultResultMatcher
private static ResultMatcher resultMatcher
private TestEngine engine
public static GeometryOperation getGeometryOperation()
public static boolean isGeometryOperationSpecified()
public static ResultMatcher getResultMatcher()
public static boolean isResultMatcherSpecified()
ResultMatcher
was specified on the command lineprivate void run(JTSTestRunnerCmd.TestRunnerOptions options) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
private java.lang.String report(boolean isVerbose)
public static void main(java.lang.String[] args)
private static JTSTestRunnerCmd.TestRunnerOptions readOptions(java.lang.String[] args) throws ParseException, java.io.FileNotFoundException, java.io.IOException
ParseException
java.io.FileNotFoundException
java.io.IOException
private static java.util.List<java.lang.String> extractTestFilenames(CommandLine commandLine) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
private static CommandLine createCommandLine() throws ParseException
ParseException
private static void printHelp()
public static java.util.List<java.lang.String> cmdOptionArgList(CommandLine commandLine, java.lang.String optionName)