testEventExecutor() — netty Function Reference
Architecture documentation for the testEventExecutor() function in PromiseCombinerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a5d167b5_e1a2_8b4e_7685_0d340980a67d["testEventExecutor()"] 64e2a604_76bd_8150_6c8d_5a16b7d30a6b["PromiseCombinerTest"] a5d167b5_e1a2_8b4e_7685_0d340980a67d -->|defined in| 64e2a604_76bd_8150_6c8d_5a16b7d30a6b style a5d167b5_e1a2_8b4e_7685_0d340980a67d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java lines 192–222
@Test
public void testEventExecutor() {
EventExecutor executor = mock(EventExecutor.class);
when(executor.inEventLoop()).thenReturn(false);
combiner = new PromiseCombiner(executor);
Future<?> future = mock(Future.class);
try {
combiner.add(future);
fail();
} catch (IllegalStateException expected) {
// expected
}
try {
combiner.addAll(future);
fail();
} catch (IllegalStateException expected) {
// expected
}
@SuppressWarnings("unchecked")
Promise<Void> promise = (Promise<Void>) mock(Promise.class);
try {
combiner.finish(promise);
fail();
} catch (IllegalStateException expected) {
// expected
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testEventExecutor() do?
testEventExecutor() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java.
Where is testEventExecutor() defined?
testEventExecutor() is defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java at line 192.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free