Package org.silverpeas.core.test.unit
It provides all the classes to facilitate the writing of unit tests and only of unit tests. the goal
of the unit tests is to test the behaviour of a component under some well-defined stimuli. For doing, in order
to ensure the correctness or the failure comes from only the behaviour of the component, its dependencies are all
mocked and their behaviour programmed to respond to the calls of the tested component.
- Author:
- mmoquillon
-
Class Summary Class Description EntityIdSetter A convenient object to generate a unique identifier for an entity and to set it.JpaMocker A mocker of the JPA environment for unit tests and only for unit tests; it must not be used in integration tests.SimpleJEEDependencyResolver A simple resolver for specific CDI types implied in dependencies injection.