Home / Function/ testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() — netty Function Reference

testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() — netty Function Reference

Architecture documentation for the testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() function in HttpRequestEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e9170400_dfcf_9692_9786_8eb723185d1d["testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel()"]
  fcb9abc3_d47c_ca31_1af5_a7b8b31112c3["HttpRequestEncoderTest"]
  e9170400_dfcf_9692_9786_8eb723185d1d -->|defined in| fcb9abc3_d47c_ca31_1af5_a7b8b31112c3
  ef6ea20f_1d89_e7fb_ed43_ea8b34830807["release()"]
  e9170400_dfcf_9692_9786_8eb723185d1d -->|calls| ef6ea20f_1d89_e7fb_ed43_ea8b34830807
  style e9170400_dfcf_9692_9786_8eb723185d1d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java lines 136–151

    @Test
    public void testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() throws Exception {
        HttpRequestEncoder encoder = new HttpRequestEncoder();
        final EmbeddedChannel channel = new EmbeddedChannel(encoder);
        final ByteBuf buf = Unpooled.buffer();
        buf.release();
        ExecutionException e = assertThrows(ExecutionException.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                channel.writeAndFlush(buf).get();
            }
        });
        assertInstanceOf(IllegalReferenceCountException.class, e.getCause().getCause());

        channel.finishAndReleaseAll();
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() do?
testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java.
Where is testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() defined?
testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java at line 136.
What does testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() call?
testEmptyReleasedBufferShouldNotWriteEmptyBufferToChannel() 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