testChannelFactoryFailureNotifiesPromise() — netty Function Reference
Architecture documentation for the testChannelFactoryFailureNotifiesPromise() function in BootstrapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 138d7abe_1058_0b37_5271_03f37f7a9adb["testChannelFactoryFailureNotifiesPromise()"] 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"] 138d7abe_1058_0b37_5271_03f37f7a9adb -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42 style 138d7abe_1058_0b37_5271_03f37f7a9adb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 425–445
@Test
public void testChannelFactoryFailureNotifiesPromise() throws Exception {
final RuntimeException exception = new RuntimeException("newChannel crash");
final Bootstrap bootstrap = new Bootstrap()
.handler(dummyHandler)
.group(groupA)
.channelFactory(new ChannelFactory<Channel>() {
@Override
public Channel newChannel() {
throw exception;
}
});
ChannelFuture connectFuture = bootstrap.connect(LocalAddress.ANY);
// Should fail with the RuntimeException.
assertTrue(connectFuture.await(10000));
assertSame(exception, connectFuture.cause());
assertNotNull(connectFuture.channel());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testChannelFactoryFailureNotifiesPromise() do?
testChannelFactoryFailureNotifiesPromise() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is testChannelFactoryFailureNotifiesPromise() defined?
testChannelFactoryFailureNotifiesPromise() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 425.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free