dataWriteToClosedStreamShouldFail() — netty Function Reference
Architecture documentation for the dataWriteToClosedStreamShouldFail() function in DefaultHttp2ConnectionEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0daff380_8461_6aa4_f9d7_0e6b6a3ed76c["dataWriteToClosedStreamShouldFail()"] aef19477_9a1f_48c4_824a_17c7f3ecbb10["DefaultHttp2ConnectionEncoderTest"] 0daff380_8461_6aa4_f9d7_0e6b6a3ed76c -->|defined in| aef19477_9a1f_48c4_824a_17c7f3ecbb10 style 0daff380_8461_6aa4_f9d7_0e6b6a3ed76c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java lines 828–838
@Test
public void dataWriteToClosedStreamShouldFail() throws Exception {
createStream(STREAM_ID, false).close();
ByteBuf data = mock(ByteBuf.class);
ChannelPromise promise = newPromise();
encoder.writeData(ctx, STREAM_ID, data, 0, false, promise);
assertTrue(promise.isDone());
assertFalse(promise.isSuccess());
assertInstanceOf(IllegalArgumentException.class, promise.cause());
verify(data).release();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does dataWriteToClosedStreamShouldFail() do?
dataWriteToClosedStreamShouldFail() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java.
Where is dataWriteToClosedStreamShouldFail() defined?
dataWriteToClosedStreamShouldFail() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java at line 828.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free