testAddChannelInitializer() — netty Function Reference
Architecture documentation for the testAddChannelInitializer() function in ChannelInitializerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 15c06dbc_8bf9_bdce_11c6_845769f210ff["testAddChannelInitializer()"] 1d273673_4ec9_d923_c0aa_b8258d9bebe4["ChannelInitializerTest"] 15c06dbc_8bf9_bdce_11c6_845769f210ff -->|defined in| 1d273673_4ec9_d923_c0aa_b8258d9bebe4 456ac6bd_a1cd_6036_9316_5e875b51f1ef["testAddFirstChannelInitializer()"] 456ac6bd_a1cd_6036_9316_5e875b51f1ef -->|calls| 15c06dbc_8bf9_bdce_11c6_845769f210ff bf2a4fbd_583d_2233_a274_7e4fa79f6a77["testAddLastChannelInitializer()"] bf2a4fbd_583d_2233_a274_7e4fa79f6a77 -->|calls| 15c06dbc_8bf9_bdce_11c6_845769f210ff style 15c06dbc_8bf9_bdce_11c6_845769f210ff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/ChannelInitializerTest.java lines 228–248
private static void testAddChannelInitializer(final boolean first) {
final AtomicBoolean called = new AtomicBoolean();
EmbeddedChannel channel = new EmbeddedChannel(new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel ch) {
ChannelHandler handler = new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel ch) {
called.set(true);
}
};
if (first) {
ch.pipeline().addFirst(handler);
} else {
ch.pipeline().addLast(handler);
}
}
});
channel.finish();
assertTrue(called.get());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testAddChannelInitializer() do?
testAddChannelInitializer() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/ChannelInitializerTest.java.
Where is testAddChannelInitializer() defined?
testAddChannelInitializer() is defined in transport/src/test/java/io/netty/channel/ChannelInitializerTest.java at line 228.
What calls testAddChannelInitializer()?
testAddChannelInitializer() is called by 2 function(s): testAddFirstChannelInitializer, testAddLastChannelInitializer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free