Helper tools for supporting Unit Tests, Integration test and test automation in AEM-based projects.

Overview

  • AEM Mocks: Mock implementations for running unit tests in AEM context without having to run a real AEM or Sling instance:
  • Mock Helper: Helper for setting up Mock contexts for wcm.io subprojects.
    • Sling: Helps setting up mock environment for wcm.io Sling Commons and Sling Models Extensions.
    • WCM: Helps setting up mock environment for wcm.io WCM Commons.
    • Context-Aware Configuration: Helps setting up mock environment for wcm.io Context-Aware Configuration.
    • Handler: Helps setting up mock environment for wcm.io Handler.
    • Site API Processor: Helps setting up mock environment for wcm.io Site API Processor.
    • Site API Handler: Helps setting up mock environment for wcm.io Site API with Handler infrastructure.
    • Site API Generic Edit: Helps setting up mock environment for wcm.io Site API Generic Edit.
    • Site API Generic Edit Handler Extensions: Helps setting up mock environment for wcm.io Site API Generic Edit Handler Extensions.
  • Logging configuration
    • Lockback: Default configuration for Logback logging in unit tests.
  • JUnit 4 Commons: Common extensions of JUnit 4 for supporting AEM Mocks JUnit 4 integration.

Mocking stack

Initially wcm.io provided mocking implementations for JCR, OSGi and Sling. These implementations are now part of the Apache Sling project and maintained by the Sling Community:

Back to top

Version: 1. Last Published: 2024-03-06.