Home / Function/ testEmptyFullContent() — netty Function Reference

testEmptyFullContent() — netty Function Reference

Architecture documentation for the testEmptyFullContent() function in HttpContentCompressorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9331a53a_549e_1ae8_5f6e_64f7f29958cf["testEmptyFullContent()"]
  32ab04b0_6c83_d4f7_6483_fd304f908331["HttpContentCompressorTest"]
  9331a53a_549e_1ae8_5f6e_64f7f29958cf -->|defined in| 32ab04b0_6c83_d4f7_6483_fd304f908331
  bdf032ba_93a9_0f83_122a_c24ea71efa75["release()"]
  9331a53a_549e_1ae8_5f6e_64f7f29958cf -->|calls| bdf032ba_93a9_0f83_122a_c24ea71efa75
  style 9331a53a_549e_1ae8_5f6e_64f7f29958cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java lines 550–572

    @Test
    public void testEmptyFullContent() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new HttpContentCompressor());
        ch.writeInbound(newRequest());

        FullHttpResponse res = new DefaultFullHttpResponse(
                HttpVersion.HTTP_1_1, HttpResponseStatus.OK, Unpooled.EMPTY_BUFFER);
        ch.writeOutbound(res);

        Object o = ch.readOutbound();
        assertInstanceOf(FullHttpResponse.class, o);

        res = (FullHttpResponse) o;
        assertNull(res.headers().get(HttpHeaderNames.TRANSFER_ENCODING));

        // Content encoding shouldn't be modified.
        assertNull(res.headers().get(HttpHeaderNames.CONTENT_ENCODING));
        assertEquals(0, res.content().readableBytes());
        assertEquals("", res.content().toString(CharsetUtil.US_ASCII));
        res.release();

        assertNull(ch.readOutbound());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testEmptyFullContent() do?
testEmptyFullContent() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java.
Where is testEmptyFullContent() defined?
testEmptyFullContent() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java at line 550.
What does testEmptyFullContent() call?
testEmptyFullContent() calls 1 function(s): release.

Analyze Your Own Codebase

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

Try Supermodel Free