Versions Compared

Key

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

...

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

TypeRemark
MockContextA mock context where you can add Sessions and set a User.
ComponentsTestUtil

set Set default implementations or instances when IoC can't be used yet.

MgnlTestCase Sets Sets up a basic environment for the test, loads beans and modules properties and initializes a mock context as the local context.
RepositoryTestCaseSuperclass for Tests requiring access to a real jcr repo.
MockUtilUtil to create mock objects - especially MockContexts.
MockContextContext where you can add Sessions and set a User
MockNodeMock implementation of a jcr Node
MockContentMockImplemenation of a Content