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

testing: facilitate usage of mocks

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0 RC4
    • 3.0 RC3
    • None
    • None

    Description

      We should allow to use mocks created with EasyMocks in the FactoryUtil.

      Currently the FactoryUtil instantiates an object by itslef and one can only define the implementation class (works really fine), but for testing it would be nice if we could register mocks with a method registerMock() and switch them on with setMocksAllowed().

      Using this we are able to mock the major parts in magnolia.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD