Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8320

[Timebox] Replace MockComponentProvider with a Guice base componenent provider in JUnit5 extensions


    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • None
    • core

      The ComponentProviderSupport JUnit5 extension is backed by a MockComponentProvider instance. We should try to replace this with a Guice base component provider:

      • MockComponentProvider keeps static state, has an unclear lifecycle and it is often unclear when and where to call ComponentTestUtils.cleanup.
      • First step to deprecating ComponentTestUtils
      • GuiceComponentProvider would reuse the code from the Magnolia production setup
      • GuiceComponentProvider could prove harder to troubleshoot though (no bindings validation before actual injector creation)

      We should spend ~3 days to figure out whether replacing is feasible, there are any major roadblocks, incompatibilities or unexpected difficulties. At the end of this task we should be in the position to decide whether we want to do the replacing or not and how much effort it would be.

        Acceptance criteria

              mduerig Michael Duerig
              mduerig Michael Duerig
              0 Vote for this issue
              1 Start watching this issue


                  Task DoR