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

testing: facilitate usage of mocks

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD