Home / Function/ dataWriteToHalfClosedLocalStreamShouldFail() — netty Function Reference

dataWriteToHalfClosedLocalStreamShouldFail() — netty Function Reference

Architecture documentation for the dataWriteToHalfClosedLocalStreamShouldFail() function in DefaultHttp2ConnectionEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d913d265_843e_0298_6fe7_5c7fcb3222dc["dataWriteToHalfClosedLocalStreamShouldFail()"]
  aef19477_9a1f_48c4_824a_17c7f3ecbb10["DefaultHttp2ConnectionEncoderTest"]
  d913d265_843e_0298_6fe7_5c7fcb3222dc -->|defined in| aef19477_9a1f_48c4_824a_17c7f3ecbb10
  style d913d265_843e_0298_6fe7_5c7fcb3222dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java lines 840–850

    @Test
    public void dataWriteToHalfClosedLocalStreamShouldFail() throws Exception {
        createStream(STREAM_ID, true);
        ByteBuf data = mock(ByteBuf.class);
        ChannelPromise promise = newPromise();
        encoder.writeData(ctx, STREAM_ID, data, 0, false, promise);
        assertTrue(promise.isDone());
        assertFalse(promise.isSuccess());
        assertInstanceOf(IllegalStateException.class, promise.cause());
        verify(data).release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free