@Version("1.0.0")
Package org.apache.sling.testing.mock.sling.junit5
JUnit 5 extensions for Sling context.
-
Interface Summary Interface Description SlingContextCallback Callback interface for application-specific setup and teardown operations to customize theSlingContext
JUnit parameter context. -
Class Summary Class Description SlingContext Sling Mock parameter object with resource resolver type defaulting toResourceResolverType.RESOURCERESOLVER_MOCK
.SlingContextBuilder Builder class for creatingSlingContext
instances with different sets of parameters.SlingContextExtension 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.