Home / Function/ testAfterConnect() — netty Function Reference

testAfterConnect() — netty Function Reference

Architecture documentation for the testAfterConnect() function in HttpClientCodecTest.java from the netty codebase.

Function java Buffer Allocators calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  6c488629_037c_2535_c3c8_3c1f70b89474["testAfterConnect()"]
  c395f8e2_08a9_4e0c_820e_5851189d51c7["HttpClientCodecTest"]
  6c488629_037c_2535_c3c8_3c1f70b89474 -->|defined in| c395f8e2_08a9_4e0c_820e_5851189d51c7
  a824e494_0d77_e8a5_bd8a_28fa3395b44c["testContinueParsingAfterConnect()"]
  a824e494_0d77_e8a5_bd8a_28fa3395b44c -->|calls| 6c488629_037c_2535_c3c8_3c1f70b89474
  a3db3014_4bdd_3be6_35d8_af2b2797eb45["testPassThroughAfterConnect()"]
  a3db3014_4bdd_3be6_35d8_af2b2797eb45 -->|calls| 6c488629_037c_2535_c3c8_3c1f70b89474
  5485adc8_072b_0345_d50b_1dc2bdbcee72["sendRequestAndReadResponse()"]
  6c488629_037c_2535_c3c8_3c1f70b89474 -->|calls| 5485adc8_072b_0345_d50b_1dc2bdbcee72
  5b17fec6_5e9b_cbb0_59d7_9822bcceb91c["getReceivedCount()"]
  6c488629_037c_2535_c3c8_3c1f70b89474 -->|calls| 5b17fec6_5e9b_cbb0_59d7_9822bcceb91c
  a95cfd00_a764_a939_fc32_7dac2fcb2a20["accept()"]
  6c488629_037c_2535_c3c8_3c1f70b89474 -->|calls| a95cfd00_a764_a939_fc32_7dac2fcb2a20
  style 6c488629_037c_2535_c3c8_3c1f70b89474 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpClientCodecTest.java lines 214–233

    private static void testAfterConnect(final boolean parseAfterConnect) throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new HttpClientCodec(4096, 8192, 8192, true, true, parseAfterConnect));

        Consumer connectResponseConsumer = new Consumer();
        sendRequestAndReadResponse(ch, HttpMethod.CONNECT, EMPTY_RESPONSE, connectResponseConsumer);
        assertTrue(connectResponseConsumer.getReceivedCount() > 0, "No connect response messages received.");
        Consumer responseConsumer = new Consumer() {
            @Override
            void accept(Object object) {
                if (parseAfterConnect) {
                    assertInstanceOf(HttpObject.class, object);
                } else {
                    assertThat(object).isNotInstanceOf(HttpObject.class);
                }
            }
        };
        sendRequestAndReadResponse(ch, HttpMethod.GET, RESPONSE, responseConsumer);
        assertTrue(responseConsumer.getReceivedCount() > 0, "No response messages received.");
        assertFalse(ch.finish(), "Channel finish failed.");
    }

Domain

Subdomains

Frequently Asked Questions

What does testAfterConnect() do?
testAfterConnect() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpClientCodecTest.java.
Where is testAfterConnect() defined?
testAfterConnect() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpClientCodecTest.java at line 214.
What does testAfterConnect() call?
testAfterConnect() calls 3 function(s): accept, getReceivedCount, sendRequestAndReadResponse.
What calls testAfterConnect()?
testAfterConnect() is called by 2 function(s): testContinueParsingAfterConnect, testPassThroughAfterConnect.

Analyze Your Own Codebase

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

Try Supermodel Free