Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to write an Unit Test

PreconditionsPrerequisites:

  1. 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)

  2. Add the AEM WCM Core Components Plugin for AEM Mocks, see also List of AEM Mock Context Plugins

  3. 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)
page
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@4e99be7
showSpacefalse
sortmodified
showSpacetypefalsepage
reversetruetype
labelskb-how-to-article
cqllabel = "testing" and type = "page" and space = "WCMIO"labelskb-how-to-article