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

ComponentProvider is not removed from Components after tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • None
    • testing

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD