Class TopologyTestApp

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class TopologyTestApp extends JFrame
Executes tests specified in XML files. Displays 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
See Also:
  • Field Details

  • Constructor Details

    • TopologyTestApp

      public TopologyTestApp(List testFiles)
    • TopologyTestApp

      public TopologyTestApp()
      Creates a TopologyTestApp. Do not use this constructor; instead, use #TopologyTestApp(Properties). This constructor is for use by JBuilder's Designers.
  • Method Details

    • getGeometryOperation

      public static GeometryOperation 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

      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
    • main

      public static void main(String[] args)
      Opens a TopologyTestApp.
    • parseCommandLine

      private static void parseCommandLine(String[] args) throws ParseException
      Throws:
      ParseException
    • displayHelp

      private static void displayHelp()
    • filenames

      private static Collection filenames(Collection fileAndDirectoryNames)
    • filenames

      private static Collection filenames(File directory)
    • filenamesDeep

      private static Collection filenamesDeep(File directory)
    • arguments

      private static List arguments(String optionName)
    • testFiles

      private static List testFiles() throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • add

      public void add(List testFiles)
    • summary

      public String summary()
    • oneLineSummary

      public String oneLineSummary()
    • this_windowClosing

      void this_windowClosing(WindowEvent e)
    • this_windowOpened

      void this_windowOpened(WindowEvent e)
    • addFileButton_actionPerformed

      void addFileButton_actionPerformed(ActionEvent e)
    • removeFileButton_actionPerformed

      void removeFileButton_actionPerformed(ActionEvent e)
    • runSelectedButton_actionPerformed

      void runSelectedButton_actionPerformed(ActionEvent e)
    • runAllButton_actionPerformed

      void runAllButton_actionPerformed(ActionEvent e)
    • fileList_valueChanged

      void fileList_valueChanged(ListSelectionEvent e)
    • getSelectedTestFiles

      private List getSelectedTestFiles()
      Returns the selected test files.
    • getAllTestFiles

      private List getAllTestFiles()
      Returns all the test files.
    • reportException

      private void reportException(Exception e)
      Reports the exception to the user.
    • jbInit

      private void jbInit() throws Exception
      Initializes the Component's.
      Throws:
      Exception
    • saveProperties

      private void saveProperties() throws FileNotFoundException, IOException
      Saves the app settings to the properties file.
      Throws:
      FileNotFoundException
      IOException
    • run

      private void run(List testFiles)
    • updateEnabled

      private void updateEnabled()
      Sets the enabled state of the buttons.
    • report

      private String report()