Package org.silverpeas.core.test.unit.extention
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
-
Class Summary Class Description FieldMocker Provides mocking facilities on the fields of beans used in unit tests.GreenMailExtension A replacement ofGreenMailRule
to use GreenMail in JUnit 5 based unit tests.JEETestContext Context of the unit test environment to use in Silverpeas Core. -
Annotation Types Summary Annotation Type Description RequesterProvider Annotation to indicate that the annotated method is a provider of a user that has to be used as the current requester in each unit tests of the test class of the provider.SmtpConfig Annotation used by theGreenMailExtension
to locate the properties file in which are parameterized the SMTP configuration for a mail server to use in unit tests.