MyFaces Test
  1. MyFaces Test
  2. MYFACESTEST-54

TestPerClassLoader JUnit runner should set classloader on Thread Context

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.4
    • Component/s: Test suites
    • Labels:
      None

      Description

      Code that uses the Thread.currentThread().getContextClassLoader() like MyFaces impl ClassUtils.classForName method, receives a class from the default classloader and not the custom one from the test.

      JUnit test runner need to call the Thread.currentThread().setContextClassLoader() method.

        Activity

        Rudy De Busscher created issue -
        Rudy De Busscher made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.0.4-SNAPSHOT [ 12316445 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.0.4 [ 12317607 ]
        Fix Version/s 1.0.4-SNAPSHOT [ 12316445 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Rudy De Busscher
            Reporter:
            Rudy De Busscher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development