testCancellationExceptionIsThrownWhenBlockingGet() — netty Function Reference
Architecture documentation for the testCancellationExceptionIsThrownWhenBlockingGet() function in DefaultPromiseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e6eeb0bf_b513_6da5_3b3a_5514e1d9b54a["testCancellationExceptionIsThrownWhenBlockingGet()"] 18d135a2_101c_bae7_e68f_dd4660e1fb75["DefaultPromiseTest"] e6eeb0bf_b513_6da5_3b3a_5514e1d9b54a -->|defined in| 18d135a2_101c_bae7_e68f_dd4660e1fb75 8a5571f5_2006_3c17_8a8a_593a884241a7["execute()"] e6eeb0bf_b513_6da5_3b3a_5514e1d9b54a -->|calls| 8a5571f5_2006_3c17_8a8a_593a884241a7 style e6eeb0bf_b513_6da5_3b3a_5514e1d9b54a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java lines 169–179
@Test
public void testCancellationExceptionIsThrownWhenBlockingGet() {
final Promise<Void> promise = new DefaultPromise<Void>(ImmediateEventExecutor.INSTANCE);
assertTrue(promise.cancel(false));
assertThrows(CancellationException.class, new Executable() {
@Override
public void execute() throws Throwable {
promise.get();
}
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testCancellationExceptionIsThrownWhenBlockingGet() do?
testCancellationExceptionIsThrownWhenBlockingGet() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java.
Where is testCancellationExceptionIsThrownWhenBlockingGet() defined?
testCancellationExceptionIsThrownWhenBlockingGet() is defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java at line 169.
What does testCancellationExceptionIsThrownWhenBlockingGet() call?
testCancellationExceptionIsThrownWhenBlockingGet() calls 1 function(s): execute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free