...
How to write an Unit Test
PreconditionsPrerequisites:
Add the bundle
com.adobe.cq:core.wcm.components.core
as 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:resourceSuperType
property needs to exist in the mocked repository of your unit test (see below)
...
Filter by label (Content by label) | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|