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