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

Some tests doesn't test actual controls classes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None

      Description

      javafx.scene.control.ControlTest.testRT18097 actually tests built tests classes, not the controls classes.
      The reason for this is because when running "gradle test" the classpath is constructed so that the modules\controls\build\classes\test happens before the modules\controls\build\classes\main and the cl.getResource("javafx/.."); call returns modules\controls\build\classes\test when it should return modules\controls\build\classes\main.
      When running tests from NB (which require some manual adding classpaths), this call returns netbeans\controls\build\classes and the test runs correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vadim Vadim Pakhnushev
                Reporter:
                vadim Vadim Pakhnushev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: