Home / Function/ testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() — netty Function Reference

testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() — netty Function Reference

Architecture documentation for the testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() function in DefaultPromiseTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f3fa26de_3fe3_f842_5ba2_9739de32dc6a["testCancellationExceptionIsThrownWhenBlockingGetWithTimeout()"]
  18d135a2_101c_bae7_e68f_dd4660e1fb75["DefaultPromiseTest"]
  f3fa26de_3fe3_f842_5ba2_9739de32dc6a -->|defined in| 18d135a2_101c_bae7_e68f_dd4660e1fb75
  8a5571f5_2006_3c17_8a8a_593a884241a7["execute()"]
  f3fa26de_3fe3_f842_5ba2_9739de32dc6a -->|calls| 8a5571f5_2006_3c17_8a8a_593a884241a7
  style f3fa26de_3fe3_f842_5ba2_9739de32dc6a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java lines 181–191

    @Test
    public void testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() {
        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(1, TimeUnit.SECONDS);
            }
        });
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() do?
testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java.
Where is testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() defined?
testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() is defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java at line 181.
What does testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() call?
testCancellationExceptionIsThrownWhenBlockingGetWithTimeout() 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