mockListener() — netty Function Reference
Architecture documentation for the mockListener() function in PromiseCombinerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cb074133_e25a_171a_ca3f_eb5d48c284a8["mockListener()"] 64e2a604_76bd_8150_6c8d_5a16b7d30a6b["PromiseCombinerTest"] cb074133_e25a_171a_ca3f_eb5d48c284a8 -->|defined in| 64e2a604_76bd_8150_6c8d_5a16b7d30a6b ad2f9452_418e_165a_d9a5_e8d258bd10ea["mockSuccessPromise()"] ad2f9452_418e_165a_d9a5_e8d258bd10ea -->|calls| cb074133_e25a_171a_ca3f_eb5d48c284a8 f4f0fc95_619b_0e49_b43f_3a9fbaa293f1["mockFailedPromise()"] f4f0fc95_619b_0e49_b43f_3a9fbaa293f1 -->|calls| cb074133_e25a_171a_ca3f_eb5d48c284a8 style cb074133_e25a_171a_ca3f_eb5d48c284a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java lines 252–262
@SuppressWarnings("unchecked")
private static void mockListener(final Promise<Void> p, final GenericFutureListenerConsumer consumer) {
doAnswer(new Answer<Promise<Void>>() {
@SuppressWarnings({ "unchecked", "raw-types" })
@Override
public Promise<Void> answer(InvocationOnMock invocation) throws Throwable {
consumer.accept((GenericFutureListener) invocation.getArgument(0));
return p;
}
}).when(p).addListener(any(GenericFutureListener.class));
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does mockListener() do?
mockListener() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java.
Where is mockListener() defined?
mockListener() is defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java at line 252.
What calls mockListener()?
mockListener() is called by 2 function(s): mockFailedPromise, mockSuccessPromise.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free