testHandleInboundMessage() — netty Function Reference
Architecture documentation for the testHandleInboundMessage() function in EmbeddedChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f0544ae0_817e_4434_0176_f8e4ab484303["testHandleInboundMessage()"] 300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"] f0544ae0_817e_4434_0176_f8e4ab484303 -->|defined in| 300cabef_b042_697f_5623_37ce249f504d style f0544ae0_817e_4434_0176_f8e4ab484303 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 545–561
@Test
public void testHandleInboundMessage() throws InterruptedException {
final CountDownLatch latch = new CountDownLatch(1);
EmbeddedChannel channel = new EmbeddedChannel() {
@Override
protected void handleInboundMessage(Object msg) {
latch.countDown();
}
};
channel.writeOneInbound("Hello, Netty!");
if (!latch.await(1L, TimeUnit.SECONDS)) {
fail("Nobody called #handleInboundMessage() in time.");
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testHandleInboundMessage() do?
testHandleInboundMessage() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testHandleInboundMessage() defined?
testHandleInboundMessage() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 545.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free