Class JTSTestRunnerCmd
java.lang.Object
org.locationtech.jtstest.testrunner.JTSTestRunnerCmd
A command-line utility to execute tests specified in JTS Test XML files.
Displays status and any errors encountered.
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 |
- Version:
- 1.7
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static GeometryOperation
private static ResultMatcher
private TestEngine
private static GeometryFunctionRegistry
private static GeometryOperation
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static ResultMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncmdOptionArgList
(CommandLine commandLine, String optionName) private static CommandLine
extractTestFilenames
(CommandLine commandLine) static GeometryOperation
static ResultMatcher
static boolean
Tests whether a GeometryOperation was specified on the command linestatic boolean
Tests whether aResultMatcher
was specified on the command linestatic void
private static void
private static JTSTestRunnerCmd.TestRunnerOptions
readOptions
(String[] args) private String
report
(boolean isVerbose) private void
run
(JTSTestRunnerCmd.TestRunnerOptions options)
-
Field Details
-
PROPERTY_TESTFILES
- See Also:
-
OPT_FILES
- See Also:
-
OPT_GEOMFUNC
- See Also:
-
OPT_GEOMOP
- See Also:
-
OPT_PROPERTIES
- See Also:
-
OPT_TESTCASEINDEX
- See Also:
-
OPT_VERBOSE
- See Also:
-
funcRegistry
-
defaultOp
-
geometryOp
-
defaultResultMatcher
-
resultMatcher
-
engine
-
-
Constructor Details
-
JTSTestRunnerCmd
public JTSTestRunnerCmd()
-
-
Method Details
-
getGeometryOperation
-
isGeometryOperationSpecified
public static boolean isGeometryOperationSpecified()Tests whether a GeometryOperation was specified on the command line- Returns:
- true if a geometry operation was specified
-
getResultMatcher
-
isResultMatcherSpecified
public static boolean isResultMatcherSpecified()Tests whether aResultMatcher
was specified on the command line- Returns:
- true if a matcher was specified
-
run
private void run(JTSTestRunnerCmd.TestRunnerOptions options) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
report
-
main
-
readOptions
private static JTSTestRunnerCmd.TestRunnerOptions readOptions(String[] args) throws ParseException, FileNotFoundException, IOException -
extractTestFilenames
private static List<String> extractTestFilenames(CommandLine commandLine) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
createCommandLine
- Throws:
ParseException
-
printHelp
private static void printHelp() -
cmdOptionArgList
-