Package org.apache.sling.testing.mock.sling.junit5
@Version("1.0.0")
package org.apache.sling.testing.mock.sling.junit5
JUnit 5 extensions for Sling context.
-
ClassDescriptionSling Mock parameter object with resource resolver type defaulting to
ResourceResolverType.RESOURCERESOLVER_MOCK.Builder class for creatingSlingContextinstances with different sets of parameters.Callback interface for application-specific setup and teardown operations to customize theSlingContextJUnit parameter context.JUnit 5 extension that allows to injectSlingContext(or subclasses of it) parameters in test methods, and ensures that the context is set up and teared down properly for each test method.