Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Useful classes included in magnolia-core for building tests:

Here are some of the clases we have for Magnolia testing, you can find more classes in package info.magnolia.test 

  • MgnlTestCase - Sets up a basic environment for the test, loads beans and modules properties and initializes a mock context as the local context.

...

  • MockContent - emulates a Content object used by MockUtil
  • MockConext - emulates a context where you can set a mocked hierarchy manager
  • RepositoryTestCase - Can be used to test on a real repository. It will initialize and delete it when finished.

...

Magnolia Mock Objects - Mock Content 

 The customized mock objects that we provide to be able to setup an environment for Magnolia tests can be found in package info.magnolia.test.mock.