Home / Function/ testUpgradeDataEnd() — netty Function Reference

testUpgradeDataEnd() — netty Function Reference

Architecture documentation for the testUpgradeDataEnd() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d0589035_ab06_b77a_fc40_eed4f9caad19["testUpgradeDataEnd()"]
  f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"]
  d0589035_ab06_b77a_fc40_eed4f9caad19 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871
  style d0589035_ab06_b77a_fc40_eed4f9caad19 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 229–246

    @Test
    public void testUpgradeDataEnd() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
        ByteBuf hello = Unpooled.copiedBuffer("hello world", CharsetUtil.UTF_8);
        LastHttpContent end = new DefaultLastHttpContent(hello, true);
        assertTrue(ch.writeOutbound(end));

        Http2DataFrame dataFrame = ch.readOutbound();
        try {
            assertEquals("hello world", dataFrame.content().toString(CharsetUtil.UTF_8));
            assertTrue(dataFrame.isEndStream());
        } finally {
            dataFrame.release();
        }

        assertNull(ch.readOutbound());
        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testUpgradeDataEnd() do?
testUpgradeDataEnd() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testUpgradeDataEnd() defined?
testUpgradeDataEnd() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 229.

Analyze Your Own Codebase

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

Try Supermodel Free