Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2516

SkinProviderTest failing because of surefire test run order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.1.0-core
    • None
    • Skinning
    • None

    Description

      SkinProviderTest is failing due to surefire test run order. SkinProviderTest asserts skins loaded by SkinProviders and skins available in the cache to ensure correctness of SkinProvider and StyleProvider implementations.

      When this test case runs after RenderKitTestCase, this test finds some unexpected skins to be present in the StyleProvider cache already. This happens because of the Application scope concurrent map is getting shared between RenderKitTestCase and SkinProviderTest.

      To solve this problem SkinProviderTest has to clear the Application scope concurrent map by invoking RequestContext.releaseApplicationState().

      Attachments

        1. jira-2516.patch
          1 kB
          Anand V Nath

        Activity

          People

            Unassigned Unassigned
            anand.v.nath@oracle.com Anand V Nath
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: