Package org.silverpeas.kernel.test.extension
package org.silverpeas.kernel.test.extension
Provides various JUnit 5 extensions to prepare and configure the context of execution of unit
tests. These extensions use the Mockito framework and as such they cannot be used (and shouldn't
be used) in the integration tests.
- Author:
- mmoquillon
-
ClassDescriptionEnables the Silverpeas environment dedicated to the unit tests.Provides easy stubbing on the
LocalizationBundlein unit tests.JUnit 5 extension to take care of the logger levels to set in a given unit test.Annotation to specify a logger level.Provides easy stubbing on theSettingBundlein unit tests.Prepares the environment specific to Silverpeas to run unit tests.Context of the Silverpeas testing environment enabled by theEnableSilverTestEnvJunit extension.Execution context of a given test.