...
How to write an Unit Test
PreconditionsPrerequisites:
Add the bundle
com.adobe.cq:core.wcm.components.coreas test dependency (the AEM API JARs contain only the interfaces, not the model implementation classes)Add the AEM WCM Core Components Plugin for AEM Mocks, see also List of AEM Mock Context Plugins
The component definition of your resource with the
sling:resourceSuperTypeproperty needs to exist in the mocked repository of your unit test (see below)
...
| Filter by label | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|