AbstractDecoratingHttp2ConnectionDecoderTest Class — netty Architecture
Architecture documentation for the AbstractDecoratingHttp2ConnectionDecoderTest class in AbstractDecoratingHttp2ConnectionDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5ec6267a_960f_7481_3d25_13fe5ad76b37["AbstractDecoratingHttp2ConnectionDecoderTest"] 073d301a_2386_93c7_e727_e2bae8990560["AbstractDecoratingHttp2ConnectionDecoderTest.java"] 5ec6267a_960f_7481_3d25_13fe5ad76b37 -->|defined in| 073d301a_2386_93c7_e727_e2bae8990560 c76de529_8843_5055_0d11_23671e89d227["DecoratingHttp2ConnectionDecoder()"] 5ec6267a_960f_7481_3d25_13fe5ad76b37 -->|method| c76de529_8843_5055_0d11_23671e89d227 9f12ef0d_7fcf_1372_8006_4a8b8f523f90["delegatingFrameListenerType()"] 5ec6267a_960f_7481_3d25_13fe5ad76b37 -->|method| 9f12ef0d_7fcf_1372_8006_4a8b8f523f90 4f2e9b35_f7d8_9040_fe21_f00d2e0a88e0["testDecoration()"] 5ec6267a_960f_7481_3d25_13fe5ad76b37 -->|method| 4f2e9b35_f7d8_9040_fe21_f00d2e0a88e0 89d8b3de_a9c6_4391_461f_680c602b1674["testDecorationWithNull()"] 5ec6267a_960f_7481_3d25_13fe5ad76b37 -->|method| 89d8b3de_a9c6_4391_461f_680c602b1674
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/AbstractDecoratingHttp2ConnectionDecoderTest.java lines 28–61
public abstract class AbstractDecoratingHttp2ConnectionDecoderTest {
protected abstract DecoratingHttp2ConnectionDecoder newDecoder(Http2ConnectionDecoder decoder);
protected abstract Class<? extends Http2FrameListener> delegatingFrameListenerType();
@Test
public void testDecoration() {
Http2ConnectionDecoder delegate = mock(Http2ConnectionDecoder.class);
final ArgumentCaptor<Http2FrameListener> listenerArgumentCaptor =
ArgumentCaptor.forClass(Http2FrameListener.class);
when(delegate.frameListener()).then(new Answer<Http2FrameListener>() {
@Override
public Http2FrameListener answer(InvocationOnMock invocationOnMock) {
return listenerArgumentCaptor.getValue();
}
});
Http2FrameListener listener = mock(Http2FrameListener.class);
DecoratingHttp2ConnectionDecoder decoder = newDecoder(delegate);
decoder.frameListener(listener);
verify(delegate).frameListener(listenerArgumentCaptor.capture());
assertThat(decoder.frameListener()).isNotInstanceOf(delegatingFrameListenerType());
}
@Test
public void testDecorationWithNull() {
Http2ConnectionDecoder delegate = mock(Http2ConnectionDecoder.class);
DecoratingHttp2ConnectionDecoder decoder = newDecoder(delegate);
decoder.frameListener(null);
assertNull(decoder.frameListener());
}
}
Source
Frequently Asked Questions
What is the AbstractDecoratingHttp2ConnectionDecoderTest class?
AbstractDecoratingHttp2ConnectionDecoderTest is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/AbstractDecoratingHttp2ConnectionDecoderTest.java.
Where is AbstractDecoratingHttp2ConnectionDecoderTest defined?
AbstractDecoratingHttp2ConnectionDecoderTest is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/AbstractDecoratingHttp2ConnectionDecoderTest.java at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free