mockFailedPromise() — netty Function Reference
Architecture documentation for the mockFailedPromise() function in PromiseCombinerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f4f0fc95_619b_0e49_b43f_3a9fbaa293f1["mockFailedPromise()"] 64e2a604_76bd_8150_6c8d_5a16b7d30a6b["PromiseCombinerTest"] f4f0fc95_619b_0e49_b43f_3a9fbaa293f1 -->|defined in| 64e2a604_76bd_8150_6c8d_5a16b7d30a6b 6eacaeeb_05b7_4cc0_7f9b_cc25fe020b1a["testAddAllFail()"] 6eacaeeb_05b7_4cc0_7f9b_cc25fe020b1a -->|calls| f4f0fc95_619b_0e49_b43f_3a9fbaa293f1 cc88597f_b8ce_7c59_cc3f_567b89088d49["testAddFail()"] cc88597f_b8ce_7c59_cc3f_567b89088d49 -->|calls| f4f0fc95_619b_0e49_b43f_3a9fbaa293f1 cb074133_e25a_171a_ca3f_eb5d48c284a8["mockListener()"] f4f0fc95_619b_0e49_b43f_3a9fbaa293f1 -->|calls| cb074133_e25a_171a_ca3f_eb5d48c284a8 style f4f0fc95_619b_0e49_b43f_3a9fbaa293f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java lines 245–250
private static void mockFailedPromise(Promise<Void> p, Throwable cause, GenericFutureListenerConsumer consumer) {
when(p.isDone()).thenReturn(true);
when(p.isSuccess()).thenReturn(false);
when(p.cause()).thenReturn(cause);
mockListener(p, consumer);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does mockFailedPromise() do?
mockFailedPromise() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java.
Where is mockFailedPromise() defined?
mockFailedPromise() is defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java at line 245.
What does mockFailedPromise() call?
mockFailedPromise() calls 1 function(s): mockListener.
What calls mockFailedPromise()?
mockFailedPromise() is called by 2 function(s): testAddAllFail, testAddFail.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free