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

ComponentsTestUtil should allow to use an extension of MockComponentProvider

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • None
    • None
    • None
    • None
    • Yes

    Description

      In order to simplify/improve testing the ComponentsTestUtil class should allow to use an alternative class instead of MockComponentProvider. This is currently not possible in a nice way as everything is static and doesn't allow to be extended.

      It would be nice to be able to override this implementation. The attached extension (only meant to be a suggestion) does this using reflections. In essence it's just adding the possibility to configure the MockProvider extension class.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              costamojan Daniel Kasmeroglu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD