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