testExceptionIsPropagatedToTerminationFuture() — netty Function Reference
Architecture documentation for the testExceptionIsPropagatedToTerminationFuture() function in SingleThreadEventExecutorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e58ba2a5_a91d_5b8e_9921_fc4f257e2e1b["testExceptionIsPropagatedToTerminationFuture()"] bbf4ea8d_698f_542a_1559_437b1b237a04["SingleThreadEventExecutorTest"] e58ba2a5_a91d_5b8e_9921_fc4f257e2e1b -->|defined in| bbf4ea8d_698f_542a_1559_437b1b237a04 d1474077_6d3a_87c2_2d11_070af739005b["run()"] e58ba2a5_a91d_5b8e_9921_fc4f257e2e1b -->|calls| d1474077_6d3a_87c2_2d11_070af739005b style e58ba2a5_a91d_5b8e_9921_fc4f257e2e1b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java lines 638–661
@Test
@Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
public void testExceptionIsPropagatedToTerminationFuture() throws Exception {
final IllegalStateException exception = new IllegalStateException();
final SingleThreadEventExecutor executor =
new SingleThreadEventExecutor(null, Executors.defaultThreadFactory(), true) {
@Override
protected void run() {
throw exception;
}
};
// Schedule something so we are sure the run() method will be called.
executor.execute(new Runnable() {
@Override
public void run() {
// Noop.
}
});
executor.terminationFuture().await();
assertSame(exception, executor.terminationFuture().cause());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testExceptionIsPropagatedToTerminationFuture() do?
testExceptionIsPropagatedToTerminationFuture() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java.
Where is testExceptionIsPropagatedToTerminationFuture() defined?
testExceptionIsPropagatedToTerminationFuture() is defined in common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java at line 638.
What does testExceptionIsPropagatedToTerminationFuture() call?
testExceptionIsPropagatedToTerminationFuture() calls 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free