testBlockingCallsInNettyThreads() — netty Function Reference
Architecture documentation for the testBlockingCallsInNettyThreads() function in NettyBlockHoundIntegrationTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1e1a3b77_1661_0699_dba9_09d98d90e34a["testBlockingCallsInNettyThreads()"] 746a8721_66e8_40dd_5dc1_a4c697fa84e4["NettyBlockHoundIntegrationTest"] 1e1a3b77_1661_0699_dba9_09d98d90e34a -->|defined in| 746a8721_66e8_40dd_5dc1_a4c697fa84e4 style 1e1a3b77_1661_0699_dba9_09d98d90e34a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java lines 111–125
@Test
public void testBlockingCallsInNettyThreads() throws Exception {
final FutureTask<Void> future = new FutureTask<>(() -> {
Thread.sleep(0);
return null;
});
GlobalEventExecutor.INSTANCE.execute(future);
try {
future.get(5, TimeUnit.SECONDS);
fail("Expected an exception due to a blocking call but none was thrown");
} catch (ExecutionException e) {
assertInstanceOf(BlockingOperationError.class, e.getCause());
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testBlockingCallsInNettyThreads() do?
testBlockingCallsInNettyThreads() is a function in the netty codebase, defined in transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java.
Where is testBlockingCallsInNettyThreads() defined?
testBlockingCallsInNettyThreads() is defined in transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java at line 111.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free