Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3463

ComponentProvider is not removed from Components after tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.4.x
    • Component/s: testing
    • Labels:

      Description

      info.magnolia.ui.framework.app.AppEventTest and info.magnolia.ui.framework.app.AppControllerImplTest set instance of info.magnolia.objectfactory.guice.GuiceComponentProvider into info.magnolia.objectfactory.Components, but the GuiceComponentProvider is not properly removed after test. This affects following tests which then uses the instance of GuiceComponentProvider from preceding test. And this can cause failing test. See https://jenkins.magnolia-cms.com/job/magnolia_ui/3489/

      I fix the build by calling info.magnolia.test.ComponentsTestUtil#clear, but this fix problem only for following tests which use info.magnolia.test.ComponentsTestUtil - https://git.magnolia-cms.com/gitweb/?p=magnolia_ui.git;a=commit;h=edebc5315075bab3c226aca9cbfb4a883988d184

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mdivilek Milan Divilek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: