# Package org.apache.sling.testing.mock.sling.servlet

@Version("4.0.0") package org.apache.sling.testing.mock.sling.servlet
Mock implementation of selected Servlet-related Sling APIs.

Related Packages
Package
Description
org.apache.sling.testing.mock.sling
Mock implementation of selected Sling APIs.
org.apache.sling.testing.mock.sling.builder
Content builder for creating test content.
org.apache.sling.testing.mock.sling.context
Sling context implementation for unit tests.
org.apache.sling.testing.mock.sling.loader
Helpers for importing test content into the mocked repositories / resource hierarchies.
org.apache.sling.testing.mock.sling.services
Mocks for selected Sling services.
org.apache.sling.testing.mock.sling.spi
SPI for hooking in alternative resource type adapter implementations.
Class
Description
MockHttpSession
Deprecated.
Use `MockJakartaHttpSession` instead.
MockJakartaHttpSession
Mock `HttpSession` implementation.
MockJakartaRequestDispatcherFactory
Interface to create a mock `RequestDispatcher` when calling the getRequestDispatcher methods on `MockSlingJakartaHttpServletRequest` instances.
MockJakartaServletContext
Mock `ServletContext` implementation.
MockRequestDispatcherFactory
Deprecated.
Use `MockJakartaRequestDispatcherFactory` instead.
MockRequestPathInfo
Mock `RequestPathInfo` implementation.
MockServletContext
Deprecated.
Use `MockJakartaServletContext` instead.
MockSlingHttpServletRequest
Deprecated.
Use `MockSlingJakartaHttpServletRequest` instead.
MockSlingHttpServletResponse
Deprecated.
Use `MockSlingJakartaHttpServletResponse` instead.
MockSlingJakartaHttpServletRequest
Mock `SlingJakartaHttpServletRequest` implementation.
MockSlingJakartaHttpServletResponse
Mock `SlingJakartaHttpServletResponse` implementation.