testDecoration() — netty Function Reference
Architecture documentation for the testDecoration() function in AbstractDecoratingHttp2ConnectionDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4f2e9b35_f7d8_9040_fe21_f00d2e0a88e0["testDecoration()"] 5ec6267a_960f_7481_3d25_13fe5ad76b37["AbstractDecoratingHttp2ConnectionDecoderTest"] 4f2e9b35_f7d8_9040_fe21_f00d2e0a88e0 -->|defined in| 5ec6267a_960f_7481_3d25_13fe5ad76b37 9f12ef0d_7fcf_1372_8006_4a8b8f523f90["delegatingFrameListenerType()"] 4f2e9b35_f7d8_9040_fe21_f00d2e0a88e0 -->|calls| 9f12ef0d_7fcf_1372_8006_4a8b8f523f90 style 4f2e9b35_f7d8_9040_fe21_f00d2e0a88e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/AbstractDecoratingHttp2ConnectionDecoderTest.java lines 34–51
@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());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecoration() do?
testDecoration() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/AbstractDecoratingHttp2ConnectionDecoderTest.java.
Where is testDecoration() defined?
testDecoration() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/AbstractDecoratingHttp2ConnectionDecoderTest.java at line 34.
What does testDecoration() call?
testDecoration() calls 1 function(s): delegatingFrameListenerType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free