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

Fix JREMatcherTest (junit test)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • deploy
    • None
    • b89

        all tests in this suite fail, mainly due to "Fake" jre mechanism being broken.
        Recent changes in JREInfo and JREMatcher have LaunchSelection.selectJRE() using JREInfo.getValidSorted() instead of JREInfo.getAll(), and this does not include the "fake" jres added by the tests.

        Another problem is the code now generates a "MatcherReturnCode" object purely for the tests (not used or returned anywhere else) and test then tests that value. This is a terrible practice. We should remove that class and all references to it. It suffices for the tests to just test if matching functions find a match, (That is what the code cares about)

              herrick Andy Herrick (Inactive)
              herrick Andy Herrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: