testSetOptionsThrow() — netty Function Reference
Architecture documentation for the testSetOptionsThrow() function in BootstrapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 20e6f297_723b_384d_5ec1_b8c128c02d27["testSetOptionsThrow()"] 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"] 20e6f297_723b_384d_5ec1_b8c128c02d27 -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42 style 20e6f297_723b_384d_5ec1_b8c128c02d27 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 93–114
@Test
public void testSetOptionsThrow() {
final ChannelFuture cf = new Bootstrap()
.group(groupA)
.channelFactory(new ChannelFactory<Channel>() {
@Override
public Channel newChannel() {
return new TestChannel();
}
})
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 4242)
.handler(new ChannelInboundHandlerAdapter())
.register();
assertThrows(UnsupportedOperationException.class, new Executable() {
@Override
public void execute() throws Throwable {
cf.syncUninterruptibly();
}
});
assertFalse(cf.channel().isActive());
}
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/BootstrapTest.java.
Where is testSetOptionsThrow() defined?
testSetOptionsThrow() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 93.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free