setup() — netty Function Reference
Architecture documentation for the setup() function in DataCompressionHttp2Test.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a22e435e_0d1a_e8b4_2f44_748a27f55afe["setup()"] 9e639957_0a4c_c19f_71db_e7a3e405c155["DataCompressionHttp2Test"] a22e435e_0d1a_e8b4_2f44_748a27f55afe -->|defined in| 9e639957_0a4c_c19f_71db_e7a3e405c155 style a22e435e_0d1a_e8b4_2f44_748a27f55afe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java lines 99–122
@BeforeEach
public void setup() throws InterruptedException, Http2Exception {
MockitoAnnotations.initMocks(this);
doAnswer(new Answer<Void>() {
@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
if (invocation.getArgument(4)) {
serverConnection.stream((Integer) invocation.getArgument(1)).close();
}
return null;
}
}).when(serverListener).onHeadersRead(any(ChannelHandlerContext.class), anyInt(), any(Http2Headers.class),
anyInt(), anyBoolean());
doAnswer(new Answer<Void>() {
@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
if (invocation.getArgument(7)) {
serverConnection.stream((Integer) invocation.getArgument(1)).close();
}
return null;
}
}).when(serverListener).onHeadersRead(any(ChannelHandlerContext.class), anyInt(), any(Http2Headers.class),
anyInt(), anyShort(), anyBoolean(), anyInt(), anyBoolean());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setup() do?
setup() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java.
Where is setup() defined?
setup() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java at line 99.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free