Class AbstractTransportDecodeSmokeIntegrationTest
- Direct Known Subclasses:
AbstractBasicMockingIntegrationTest
Each test creates an expectation keyed on decoded content and
verifies that a request carrying that encoding is matched correctly on
the current transport. Because this class sits between
AbstractMockingIntegrationTestBase and
AbstractBasicMockingIntegrationTest in the inheritance chain,
every concrete transport subclass inherits and runs these ~7 methods,
forming an explicit, maintainable per-transport decode-coverage contract.
This intentionally overlaps with scattered encoding assertions in the extended test classes (belt-and-suspenders). The overlap is deliberate: these named methods form a single discoverable contract so a future change cannot silently drop a decode path.
Introduced as the safety net promised in integration-test decomposition step #4 (commit a32ab7699 moved 28 control-plane methods to run once).
-
Field Summary
Fields inherited from class org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
clientEventLoopGroup, defaultTimeout, HEADERS_TO_IGNORE, httpClient, insecureEchoServer, MOCK_SERVER_LOGGER, mockServerClient, secureEchoServer, servletContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidprotected booleanWhether this transport decompresses gzip/deflate request bodies.Methods inherited from class org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
addContextToPath, authorisationHeader, calculatePath, createClientAndEventLoopGroup, filterHeaders, getHeadersToRemove, getRequestModifier, getServerPort, getServerSecurePort, isSecureControlPlane, makeRequest, resetServer, resetServletContext, startEchoServer, stopEventLoopGroup, verifyRequestsMatches, verifyRequestsMatches
-
Constructor Details
-
AbstractTransportDecodeSmokeIntegrationTest
public AbstractTransportDecodeSmokeIntegrationTest()
-
-
Method Details
-
supportsRequestBodyDecompression
protected boolean supportsRequestBodyDecompression()Whether this transport decompresses gzip/deflate request bodies. Netty transports returntrue(HttpContentDecompressor handles it); WAR/servlet transports returnfalse(Tomcat does not decompress request bodies). Override in subclasses that lack request-body decompression support. -
decodeSmoke_jsonBody
public void decodeSmoke_jsonBody() -
decodeSmoke_xmlBodyViaXPath
public void decodeSmoke_xmlBodyViaXPath() -
decodeSmoke_binaryPngBody
- Throws:
IOException
-
decodeSmoke_parameterBody
public void decodeSmoke_parameterBody() -
decodeSmoke_multiValueHeader
public void decodeSmoke_multiValueHeader() -
decodeSmoke_contentEncodingGzip
public void decodeSmoke_contentEncodingGzip() -
decodeSmoke_utf16Body
public void decodeSmoke_utf16Body()
-