Home / Function/ testAddFail() — netty Function Reference

testAddFail() — netty Function Reference

Architecture documentation for the testAddFail() function in PromiseCombinerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cc88597f_b8ce_7c59_cc3f_567b89088d49["testAddFail()"]
  64e2a604_76bd_8150_6c8d_5a16b7d30a6b["PromiseCombinerTest"]
  cc88597f_b8ce_7c59_cc3f_567b89088d49 -->|defined in| 64e2a604_76bd_8150_6c8d_5a16b7d30a6b
  f4f0fc95_619b_0e49_b43f_3a9fbaa293f1["mockFailedPromise()"]
  cc88597f_b8ce_7c59_cc3f_567b89088d49 -->|calls| f4f0fc95_619b_0e49_b43f_3a9fbaa293f1
  2e181b39_5c34_a5a5_f8c5_1ed157e6ffe7["verifyNotCompleted()"]
  cc88597f_b8ce_7c59_cc3f_567b89088d49 -->|calls| 2e181b39_5c34_a5a5_f8c5_1ed157e6ffe7
  39ea4f38_3959_b01b_aa5c_853ff2c7cdd9["verifyFail()"]
  cc88597f_b8ce_7c59_cc3f_567b89088d49 -->|calls| 39ea4f38_3959_b01b_aa5c_853ff2c7cdd9
  style cc88597f_b8ce_7c59_cc3f_567b89088d49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java lines 177–190

    @Test
    public void testAddFail() throws Exception {
        RuntimeException e1 = new RuntimeException("fake exception 1");
        RuntimeException e2 = new RuntimeException("fake exception 2");
        mockFailedPromise(p1, e1, l1Consumer);
        mockFailedPromise(p2, e2, l2Consumer);
        combiner.add(p1);
        l1.operationComplete(p1);
        combiner.add(p2);
        l2.operationComplete(p2);
        verifyNotCompleted(p3);
        combiner.finish(p3);
        verifyFail(p3, e1);
    }

Domain

Subdomains

Frequently Asked Questions

What does testAddFail() do?
testAddFail() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java.
Where is testAddFail() defined?
testAddFail() is defined in common/src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java at line 177.
What does testAddFail() call?
testAddFail() calls 3 function(s): mockFailedPromise, verifyFail, verifyNotCompleted.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free