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

Refactor fxml module for clear separation of tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:

      Description

      The JavaFX unit tests have relied on a "mixed" class path for testing, needing to run on the application classpath to access Junit as well the test classes. This is not how Javafx runs in normal circumstances, as it is normally on the extension class loader.

      We need to refactor these test:
          the "white box", classes that must reside in certain classes for protected class access
          the "black box": classes that can operate from outside the javafx package structure

      This will require adding some "shims" in the white box, to allow the black box tests to operate.
      All Junit tests must be in the black box.

      All black box tests will be refactored into a package tests.*

      This refactoring affects modularization efforts in JDK 9

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ddhill David Hill (Inactive)
              Reporter:
              ddhill David Hill (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: