testSuccessfulNoPending() — netty Function Reference
Architecture documentation for the testSuccessfulNoPending() function in PromiseAggregatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b26dc4f8_8731_8f02_9c12_77d2b21488b7["testSuccessfulNoPending()"] b88589a3_9d2d_214c_ca51_54d5a42e4fe6["PromiseAggregatorTest"] b26dc4f8_8731_8f02_9c12_77d2b21488b7 -->|defined in| b88589a3_9d2d_214c_ca51_54d5a42e4fe6 style b26dc4f8_8731_8f02_9c12_77d2b21488b7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/PromiseAggregatorTest.java lines 54–69
@SuppressWarnings("unchecked")
@Test
public void testSuccessfulNoPending() throws Exception {
Promise<Void> p = mock(Promise.class);
@SuppressWarnings("deprecation")
PromiseAggregator<Void, Future<Void>> a =
new PromiseAggregator<Void, Future<Void>>(p);
Future<Void> future = mock(Future.class);
when(p.setSuccess(null)).thenReturn(p);
a.add();
a.operationComplete(future);
verifyNoMoreInteractions(future);
verify(p).setSuccess(null);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSuccessfulNoPending() do?
testSuccessfulNoPending() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/PromiseAggregatorTest.java.
Where is testSuccessfulNoPending() defined?
testSuccessfulNoPending() is defined in common/src/test/java/io/netty/util/concurrent/PromiseAggregatorTest.java at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free