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 GeometryOperationprivate static ResultMatcherprivate TestEngineprivate static GeometryFunctionRegistryprivate static GeometryOperationprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static ResultMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncmdOptionArgList(CommandLine commandLine, String optionName) private static CommandLineextractTestFilenames(CommandLine commandLine) static GeometryOperationstatic ResultMatcherstatic booleanTests whether a GeometryOperation was specified on the command linestatic booleanTests whether aResultMatcherwas specified on the command linestatic voidprivate static voidprivate static JTSTestRunnerCmd.TestRunnerOptionsreadOptions(String[] args) private Stringreport(boolean isVerbose) private voidrun(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 aResultMatcherwas specified on the command line- Returns:
- true if a matcher was specified
-
run
private void run(JTSTestRunnerCmd.TestRunnerOptions options) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
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:
FileNotFoundExceptionIOException
-
createCommandLine
- Throws:
ParseException
-
printHelp
private static void printHelp() -
cmdOptionArgList
-