Home / Function/ testNullArray() — netty Function Reference

testNullArray() — netty Function Reference

Architecture documentation for the testNullArray() function in MessageFormatterTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d1dbd35e_3cf2_a3fa_0363_f202aae198ef["testNullArray()"]
  61b49498_5128_d2ab_e17e_0c346b46695a["MessageFormatterTest"]
  d1dbd35e_3cf2_a3fa_0363_f202aae198ef -->|defined in| 61b49498_5128_d2ab_e17e_0c346b46695a
  style d1dbd35e_3cf2_a3fa_0363_f202aae198ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java lines 160–180

    @Test
    public void testNullArray() {
        String msg0 = "msg0";
        String msg1 = "msg1 {}";
        String msg2 = "msg2 {} {}";
        String msg3 = "msg3 {} {} {}";

        Object[] args = null;

        String result = MessageFormatter.arrayFormat(msg0, args).getMessage();
        assertEquals(msg0, result);

        result = MessageFormatter.arrayFormat(msg1, args).getMessage();
        assertEquals(msg1, result);

        result = MessageFormatter.arrayFormat(msg2, args).getMessage();
        assertEquals(msg2, result);

        result = MessageFormatter.arrayFormat(msg3, args).getMessage();
        assertEquals(msg3, result);
    }

Domain

Subdomains

Frequently Asked Questions

What does testNullArray() do?
testNullArray() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java.
Where is testNullArray() defined?
testNullArray() is defined in common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java at line 160.

Analyze Your Own Codebase

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

Try Supermodel Free