Home / Function/ assertEmptyResponse() — netty Function Reference

assertEmptyResponse() — netty Function Reference

Architecture documentation for the assertEmptyResponse() function in HttpContentEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fc64dfe0_a6f0_1908_5cc5_0108bdca8acf["assertEmptyResponse()"]
  992a26d3_2083_aeb8_4785_63c545814355["HttpContentEncoderTest"]
  fc64dfe0_a6f0_1908_5cc5_0108bdca8acf -->|defined in| 992a26d3_2083_aeb8_4785_63c545814355
  f349aaac_aa94_f641_ee74_5532ba3e7472["testEmptyHeadResponse()"]
  f349aaac_aa94_f641_ee74_5532ba3e7472 -->|calls| fc64dfe0_a6f0_1908_5cc5_0108bdca8acf
  13fe5028_0f73_e3ab_0e9d_e48d393b3636["testHttp304Response()"]
  13fe5028_0f73_e3ab_0e9d_e48d393b3636 -->|calls| fc64dfe0_a6f0_1908_5cc5_0108bdca8acf
  282614e0_4357_b8e3_63e9_82cbbbe26782["testConnect200Response()"]
  282614e0_4357_b8e3_63e9_82cbbbe26782 -->|calls| fc64dfe0_a6f0_1908_5cc5_0108bdca8acf
  style fc64dfe0_a6f0_1908_5cc5_0108bdca8acf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java lines 438–451

    private static void assertEmptyResponse(EmbeddedChannel ch) {
        Object o = ch.readOutbound();
        assertInstanceOf(HttpResponse.class, o);

        HttpResponse res = (HttpResponse) o;
        assertThat(res).isNotInstanceOf(HttpContent.class);
        assertEquals("chunked", res.headers().get(HttpHeaderNames.TRANSFER_ENCODING));
        assertNull(res.headers().get(HttpHeaderNames.CONTENT_LENGTH));

        HttpContent chunk = ch.readOutbound();
        assertInstanceOf(LastHttpContent.class, chunk);
        chunk.release();
        assertNull(ch.readOutbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does assertEmptyResponse() do?
assertEmptyResponse() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java.
Where is assertEmptyResponse() defined?
assertEmptyResponse() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java at line 438.
What calls assertEmptyResponse()?
assertEmptyResponse() is called by 3 function(s): testConnect200Response, testEmptyHeadResponse, testHttp304Response.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free