# sling-org-apache-sling-testing-sling-mock-oak **Repository Path**: mirrors_apache/sling-org-apache-sling-testing-sling-mock-oak ## Basic Information - **Project Name**: sling-org-apache-sling-testing-sling-mock-oak - **Description**: Apache Sling Testing Sling Mock Jackrabbit Oak-based Resource Resolver - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-22 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Apache Sling](https://sling.apache.org/res/logos/sling.png)](https://sling.apache.org) [![Build Status](https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-testing-sling-mock-oak/job/master/badge/icon)](https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-testing-sling-mock-oak/job/master/) [![Test Status](https://img.shields.io/jenkins/tests.svg?jobUrl=https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-testing-sling-mock-oak/job/master/)](https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-testing-sling-mock-oak/job/master/test/?width=800&height=600) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=apache_sling-org-apache-sling-testing-sling-mock-oak&metric=coverage)](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-testing-sling-mock-oak) [![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=apache_sling-org-apache-sling-testing-sling-mock-oak&metric=alert_status)](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-testing-sling-mock-oak) [![JavaDoc](https://www.javadoc.io/badge/org.apache.sling/org.apache.sling.testing.sling-mock-oak.svg)](https://www.javadoc.io/doc/org.apache.sling/org.apache.sling.testing.sling-mock-oak) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.sling/org.apache.sling.testing.sling-mock-oak/badge.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.sling%22%20a%3A%22org.apache.sling.testing.sling-mock-oak%22) [![testing](https://sling.apache.org/badges/group-testing.svg)](https://github.com/apache/sling-aggregator/blob/master/docs/groups/testing.md) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) # Apache Sling Testing Sling Mock Jackrabbit Oak-based Resource Resolver This module is part of the [Apache Sling](https://sling.apache.org) project. Implements a resource resolver type for [Jackrabbit Oak](https://jackrabbit.apache.org/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](https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html) 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: