Home / Function/ testPrematureClosureWithChunkedEncodingAndAggregator() — netty Function Reference

testPrematureClosureWithChunkedEncodingAndAggregator() — netty Function Reference

Architecture documentation for the testPrematureClosureWithChunkedEncodingAndAggregator() function in HttpObjectAggregatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3cdcf057_ea6f_9370_4f54_d69d5f07e5ea["testPrematureClosureWithChunkedEncodingAndAggregator()"]
  32ca569a_2b67_1114_bbc8_cbf703c91b95["HttpObjectAggregatorTest"]
  3cdcf057_ea6f_9370_4f54_d69d5f07e5ea -->|defined in| 32ca569a_2b67_1114_bbc8_cbf703c91b95
  style 3cdcf057_ea6f_9370_4f54_d69d5f07e5ea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java lines 746–759

    @Test
    public void testPrematureClosureWithChunkedEncodingAndAggregator() {
        final EmbeddedChannel ch = new EmbeddedChannel(new HttpResponseDecoder(), new HttpObjectAggregator(1024));

        // Write the partial response.
        assertFalse(ch.writeInbound(Unpooled.copiedBuffer(
                "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\n\r\n8\r\n12345678", CharsetUtil.US_ASCII)));
        assertThrows(PrematureChannelClosureException.class, new Executable() {
            @Override
            public void execute() {
                ch.finish();
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does testPrematureClosureWithChunkedEncodingAndAggregator() do?
testPrematureClosureWithChunkedEncodingAndAggregator() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java.
Where is testPrematureClosureWithChunkedEncodingAndAggregator() defined?
testPrematureClosureWithChunkedEncodingAndAggregator() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java at line 746.

Analyze Your Own Codebase

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

Try Supermodel Free