Apache Sling Testing Sling Mock Jackrabbit Oak-based Resource Resolver

Clone this repo:
  1. f0e26dc switch back to released versions by Stefan Seifert · 5 weeks ago master
  2. dd30377 update dependencies to next SNAPSHOT version until release version is available on maven central by Stefan Seifert · 5 weeks ago
  3. 69e906d [maven-release-plugin] prepare for next development iteration by Stefan Seifert · 5 weeks ago
  4. e6c1967 [maven-release-plugin] prepare release org.apache.sling.testing.sling-mock-oak-4.0.0-1.62.0 by Stefan Seifert · 5 weeks ago org.apache.sling.testing.sling-mock-oak-4.0.0-1.62.0
  5. a7b31b8 update dependency by Stefan Seifert · 5 weeks ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central testing License

Apache Sling Testing Sling Mock Jackrabbit Oak-based Resource Resolver

This module is part of the Apache Sling project.

Implements a resource resolver type for Jackrabbit Oak that can be used in unit tests based on Sling Mocks.

This is a separate Maven artifact because it introduces a lot of further dependencies. In order to prevent dependency version overrides of Oak bundles via dependency management all necessary bundles are embedded into this JAR. Partially the classes are also relocated to reduce potential conflicts with other artifacts on the class path.

Make sure to depend on this artifact prior to artifact org.apache.sling.testing.sling-mock.* in order to give the Oak classes in this JAR precedence in the Maven test class path and use the shaded Oak version from this artifact.

In order to execute tests with a version newer than the Oak version shaded in this bundle, place all necessary bundles in the Maven test class path as dependencies prior to the dependency on this artifact.

Downgrading to an older Oak version is not supported and will lead to an exception (if some earlier artifacts in the class path provide an old Oak implementation).

Documentation: https://sling.apache.org/documentation/development/sling-mock.html