testEnsureOpen() — netty Function Reference
Architecture documentation for the testEnsureOpen() function in EmbeddedChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c3192c70_ecf1_c806_6b02_7696668776c8["testEnsureOpen()"] 300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"] c3192c70_ecf1_c806_6b02_7696668776c8 -->|defined in| 300cabef_b042_697f_5623_37ce249f504d 4fc8a753_5665_2ca5_69db_dc1006272b05["close()"] c3192c70_ecf1_c806_6b02_7696668776c8 -->|calls| 4fc8a753_5665_2ca5_69db_dc1006272b05 style c3192c70_ecf1_c806_6b02_7696668776c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 525–543
@Test
public void testEnsureOpen() throws InterruptedException {
EmbeddedChannel channel = new EmbeddedChannel();
channel.close().syncUninterruptibly();
try {
channel.writeOutbound("Hello, Netty!");
fail("This should have failed with a ClosedChannelException");
} catch (Exception expected) {
assertTrue(expected instanceof ClosedChannelException);
}
try {
channel.writeInbound("Hello, Netty!");
fail("This should have failed with a ClosedChannelException");
} catch (Exception expected) {
assertTrue(expected instanceof ClosedChannelException);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testEnsureOpen() do?
testEnsureOpen() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testEnsureOpen() defined?
testEnsureOpen() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 525.
What does testEnsureOpen() call?
testEnsureOpen() calls 1 function(s): close.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free