Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289238

Refactoring changes to PassFailJFrame Test Framework

XMLWordPrintable

    • b05
    • generic
    • generic

        Currently the PassFailJFrame.positionTestFrame() and PassFailJFrame.addTestFrame() takes Frame as input parameter, this can be changed to Window.

        Additionally refactor these method names to reflect the functionality & input parameter type -
        addTestFrame() to addTestWindow()
        positionTestFrame() to positionTestWindow()

        Benefits of the change -

        - Since Window is a superclass, this would allow the test frame to be a Window/Frame/Dialog and not be restricted to a Frame.

        - Code reusability - no need to have separate methods to manage Frame and Window

        - Additionally it would allow proper clean-up of window and its container subclasses which are added to the PassFailJFrame.

              honkar Harshitha Onkar
              honkar Harshitha Onkar
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: