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

ComponentProvider is not removed from Components after tests

    XMLWordPrintable

Details

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

    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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD