testChannelsIteratorRemoveThrows() — netty Function Reference
Architecture documentation for the testChannelsIteratorRemoveThrows() function in AbstractSingleThreadEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c048b53a_33d7_8392_8dee_df47ef4ded8d["testChannelsIteratorRemoveThrows()"] eb487d77_b896_e5c3_20f1_2b7144dc7cf5["AbstractSingleThreadEventLoopTest"] c048b53a_33d7_8392_8dee_df47ef4ded8d -->|defined in| eb487d77_b896_e5c3_20f1_2b7144dc7cf5 a8dce879_7ee0_7010_3c52_39fbd72cc186["supportsChannelIteration()"] c048b53a_33d7_8392_8dee_df47ef4ded8d -->|calls| a8dce879_7ee0_7010_3c52_39fbd72cc186 8e4c2417_e591_227d_d30d_62c23430fd6d["registeredChannels()"] c048b53a_33d7_8392_8dee_df47ef4ded8d -->|calls| 8e4c2417_e591_227d_d30d_62c23430fd6d d4cc6fcd_803a_7c6c_adf8_d25d73af7b63["runBlockingOn()"] c048b53a_33d7_8392_8dee_df47ef4ded8d -->|calls| d4cc6fcd_803a_7c6c_adf8_d25d73af7b63 style c048b53a_33d7_8392_8dee_df47ef4ded8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java lines 262–288
@Test
@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
public void testChannelsIteratorRemoveThrows() throws Exception {
assumeTrue(supportsChannelIteration());
EventLoopGroup group = newEventLoopGroup();
final SingleThreadEventLoop loop = (SingleThreadEventLoop) group.next();
try {
final Channel ch = newChannel();
loop.register(ch).syncUninterruptibly();
assertEquals(1, registeredChannels(loop));
runBlockingOn(loop, new Runnable() {
@Override
public void run() {
assertThrows(UnsupportedOperationException.class, new Executable() {
@Override
public void execute() {
loop.registeredChannelsIterator().remove();
}
});
}
});
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testChannelsIteratorRemoveThrows() do?
testChannelsIteratorRemoveThrows() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java.
Where is testChannelsIteratorRemoveThrows() defined?
testChannelsIteratorRemoveThrows() is defined in testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java at line 262.
What does testChannelsIteratorRemoveThrows() call?
testChannelsIteratorRemoveThrows() calls 3 function(s): registeredChannels, runBlockingOn, supportsChannelIteration.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free