Home / Function/ testFullContent() — netty Function Reference

testFullContent() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6cd41577_9a9b_c349_babb_f7eb209e86f1["testFullContent()"]
  32ab04b0_6c83_d4f7_6483_fd304f908331["HttpContentCompressorTest"]
  6cd41577_9a9b_c349_babb_f7eb209e86f1 -->|defined in| 32ab04b0_6c83_d4f7_6483_fd304f908331
  b5923f89_ec88_7b8c_42e2_99970d204fc4["assertEncodedResponse()"]
  6cd41577_9a9b_c349_babb_f7eb209e86f1 -->|calls| b5923f89_ec88_7b8c_42e2_99970d204fc4
  bdf032ba_93a9_0f83_122a_c24ea71efa75["release()"]
  6cd41577_9a9b_c349_babb_f7eb209e86f1 -->|calls| bdf032ba_93a9_0f83_122a_c24ea71efa75
  style 6cd41577_9a9b_c349_babb_f7eb209e86f1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java lines 397–421

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

        FullHttpResponse res = new DefaultFullHttpResponse(
            HttpVersion.HTTP_1_1, HttpResponseStatus.OK,
            Unpooled.copiedBuffer("Hello, World", CharsetUtil.US_ASCII));
        ch.writeOutbound(res);

        assertEncodedResponse(ch);
        HttpContent c = ch.readOutbound();
        assertEquals("1f8b0800000000000000f248cdc9c9d75108cf2fca4901000000ffff", ByteBufUtil.hexDump(c.content()));
        c.release();

        c = ch.readOutbound();
        assertEquals("0300c6865b260c000000", ByteBufUtil.hexDump(c.content()));
        c.release();

        LastHttpContent last = ch.readOutbound();
        assertEquals(0, last.content().readableBytes());
        last.release();

        assertNull(ch.readOutbound());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free