DefaultHttp2ConnectionDecoderTest Class — netty Architecture
Architecture documentation for the DefaultHttp2ConnectionDecoderTest class in DefaultHttp2ConnectionDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc["DefaultHttp2ConnectionDecoderTest"] eb1469ae_17fc_4222_ec7c_41caf42d63e4["DefaultHttp2ConnectionDecoderTest.java"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|defined in| eb1469ae_17fc_4222_ec7c_41caf42d63e4 934a6023_b0c5_2af5_60b8_ec66eaacfdfd["setup()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 934a6023_b0c5_2af5_60b8_ec66eaacfdfd fa99d2e2_6686_74ac_4dfa_6a5fb0b9c839["setupCodec()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| fa99d2e2_6686_74ac_4dfa_6a5fb0b9c839 5fbf4d78_6e4f_40c7_f025_54e959da7d90["dataReadAfterGoAwaySentShouldApplyFlowControl()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 5fbf4d78_6e4f_40c7_f025_54e959da7d90 7ab900e0_f32f_a59c_bef0_19bd02198f9b["dataReadAfterGoAwaySentShouldAllowFramesForStreamCreatedByLocalEndpoint()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 7ab900e0_f32f_a59c_bef0_19bd02198f9b 8daf42a6_8a47_9803_9d5b_686cceab4c50["dataReadForUnknownStreamShouldApplyFlowControlAndFail()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 8daf42a6_8a47_9803_9d5b_686cceab4c50 d9e798d4_69b8_63ad_093b_781d787c4bcb["dataReadForUnknownStreamThatCouldntExistFail()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| d9e798d4_69b8_63ad_093b_781d787c4bcb 70f26e56_481e_547d_8e56_bd12e1302817["dataReadForUnknownStreamShouldApplyFlowControl()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 70f26e56_481e_547d_8e56_bd12e1302817 88d61a08_3445_b918_798d_a60a2f118a52["emptyDataFrameShouldApplyFlowControl()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 88d61a08_3445_b918_798d_a60a2f118a52 d1db5d23_19fa_6005_46f1_958b9a7a0292["dataReadForStreamInInvalidStateShouldThrow()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| d1db5d23_19fa_6005_46f1_958b9a7a0292 f0c0b63f_5c78_ba9d_2b3a_537736b2f0c6["dataReadAfterGoAwaySentForStreamInInvalidStateShouldIgnore()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| f0c0b63f_5c78_ba9d_2b3a_537736b2f0c6 ca2cb6c5_07fe_8473_c27b_52926394419a["dataReadAfterGoAwaySentOnUnknownStreamShouldIgnore()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| ca2cb6c5_07fe_8473_c27b_52926394419a 4e796e8c_b51d_dffc_ccba_a11a986f89a9["dataReadAfterRstStreamForStreamInInvalidStateShouldIgnore()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 4e796e8c_b51d_dffc_ccba_a11a986f89a9 6d7d826f_7352_4b57_d9a7_8a7d142e8cf9["dataReadWithEndOfStreamShouldcloseStreamRemote()"] 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc -->|method| 6d7d826f_7352_4b57_d9a7_8a7d142e8cf9
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java lines 77–1076
public class DefaultHttp2ConnectionDecoderTest {
private static final int STREAM_ID = 3;
private static final int PUSH_STREAM_ID = 2;
private static final int STREAM_DEPENDENCY_ID = 5;
private static final int STATE_RECV_HEADERS = 1;
private static final int STATE_RECV_TRAILERS = 1 << 1;
private Http2ConnectionDecoder decoder;
private ChannelPromise promise;
@Mock
private Http2Connection connection;
@Mock
private Http2Connection.Endpoint<Http2RemoteFlowController> remote;
@Mock
private Http2Connection.Endpoint<Http2LocalFlowController> local;
@Mock
private Http2LocalFlowController localFlow;
@Mock
private Http2RemoteFlowController remoteFlow;
@Mock
private ChannelHandlerContext ctx;
@Mock
private Channel channel;
@Mock
private ChannelFuture future;
@Mock
private Http2Stream stream;
@Mock
private Http2Stream pushStream;
@Mock
private Http2FrameListener listener;
@Mock
private Http2FrameReader reader;
@Mock
private Http2FrameWriter writer;
@Mock
private Http2ConnectionEncoder encoder;
@Mock
private Http2LifecycleManager lifecycleManager;
@BeforeEach
public void setup() throws Exception {
MockitoAnnotations.initMocks(this);
promise = new DefaultChannelPromise(channel);
final AtomicInteger headersReceivedState = new AtomicInteger();
when(channel.isActive()).thenReturn(true);
when(stream.id()).thenReturn(STREAM_ID);
when(stream.state()).thenReturn(OPEN);
when(stream.open(anyBoolean())).thenReturn(stream);
final Map<Object, Object> properties = new IdentityHashMap<Object, Object>();
when(stream.getProperty(ArgumentMatchers.<Http2Connection.PropertyKey>any())).thenAnswer(new Answer<Object>() {
@Override
public Object answer(InvocationOnMock invocationOnMock) {
return properties.get(invocationOnMock.getArgument(0));
}
});
when(stream.setProperty(ArgumentMatchers.<Http2Connection.PropertyKey>any(), any())).then(new Answer<Object>() {
@Override
public Object answer(InvocationOnMock invocationOnMock) {
return properties.put(invocationOnMock.getArgument(0), invocationOnMock.getArgument(1));
}
});
Defined In
Source
Frequently Asked Questions
What is the DefaultHttp2ConnectionDecoderTest class?
DefaultHttp2ConnectionDecoderTest is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java.
Where is DefaultHttp2ConnectionDecoderTest defined?
DefaultHttp2ConnectionDecoderTest is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free