Class JTSTestRunnerCmd


  • public class JTSTestRunnerCmd
    extends java.lang.Object
    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
    • Constructor Detail

      • JTSTestRunnerCmd

        public JTSTestRunnerCmd()
    • Method Detail

      • isGeometryOperationSpecified

        public static boolean isGeometryOperationSpecified()
        Tests whether a GeometryOperation was specified on the command line
        Returns:
        true if a geometry operation was specified
      • getResultMatcher

        public static ResultMatcher getResultMatcher()
      • isResultMatcherSpecified

        public static boolean isResultMatcherSpecified()
        Tests whether a ResultMatcher was specified on the command line
        Returns:
        true if a matcher was specified
      • run

        private void run​(JTSTestRunnerCmd.TestRunnerOptions options)
                  throws java.io.FileNotFoundException,
                         java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • report

        private java.lang.String report​(boolean isVerbose)
      • main

        public static void main​(java.lang.String[] args)
      • extractTestFilenames

        private static java.util.List<java.lang.String> extractTestFilenames​(CommandLine commandLine)
                                                                      throws java.io.FileNotFoundException,
                                                                             java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • printHelp

        private static void printHelp()
      • cmdOptionArgList

        public static java.util.List<java.lang.String> cmdOptionArgList​(CommandLine commandLine,
                                                                        java.lang.String optionName)