testSetOptionsThrow() — netty Function Reference
Architecture documentation for the testSetOptionsThrow() function in ServerBootstrapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 684a2544_8fc4_b5e1_4801_b0f754017f46["testSetOptionsThrow()"] ea70f915_ade9_644f_5c4a_f1b52d559227["ServerBootstrapTest"] 684a2544_8fc4_b5e1_4801_b0f754017f46 -->|defined in| ea70f915_ade9_644f_5c4a_f1b52d559227 style 684a2544_8fc4_b5e1_4801_b0f754017f46 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/bootstrap/ServerBootstrapTest.java lines 55–82
@Test
public void testSetOptionsThrow() {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
try {
final ChannelFuture cf = new ServerBootstrap()
.group(group)
.channelFactory(new ChannelFactory<ServerChannel>() {
@Override
public ServerChannel newChannel() {
return new TestServerChannel();
}
})
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 4242)
.handler(new ChannelInboundHandlerAdapter())
.childHandler(new ChannelInboundHandlerAdapter())
.register();
assertThrows(UnsupportedOperationException.class, new Executable() {
@Override
public void execute() throws Throwable {
cf.syncUninterruptibly();
}
});
assertFalse(cf.channel().isActive());
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSetOptionsThrow() do?
testSetOptionsThrow() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/ServerBootstrapTest.java.
Where is testSetOptionsThrow() defined?
testSetOptionsThrow() is defined in transport/src/test/java/io/netty/bootstrap/ServerBootstrapTest.java at line 55.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free