Class AbstractTransportDecodeSmokeIntegrationTest

java.lang.Object
org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
org.mockserver.testing.integration.mock.AbstractTransportDecodeSmokeIntegrationTest
Direct Known Subclasses:
AbstractBasicMockingIntegrationTest

public abstract class AbstractTransportDecodeSmokeIntegrationTest extends AbstractMockingIntegrationTestBase
Explicit per-transport decode-smoke integration tests.

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).

  • Constructor Details

    • AbstractTransportDecodeSmokeIntegrationTest

      public AbstractTransportDecodeSmokeIntegrationTest()
  • Method Details

    • supportsRequestBodyDecompression

      protected boolean supportsRequestBodyDecompression()
      Whether this transport decompresses gzip/deflate request bodies. Netty transports return true (HttpContentDecompressor handles it); WAR/servlet transports return false (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

      public void decodeSmoke_binaryPngBody() throws IOException
      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()