Home / Function/ testArrayValues() — netty Function Reference

testArrayValues() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java lines 209–235

    @Test
    public void testArrayValues() {
        Integer[] p1 = { 2, 3 };

        String result = MessageFormatter.format("{}{}", 1, p1).getMessage();
        assertEquals("1[2, 3]", result);

        // Integer[]
        result = MessageFormatter.arrayFormat("{}{}", new Object[] { "a", p1 }).getMessage();
        assertEquals("a[2, 3]", result);

        // byte[]
        result = MessageFormatter.arrayFormat("{}{}", new Object[] { "a", new byte[] { 1, 2 } }).getMessage();
        assertEquals("a[1, 2]", result);

        // int[]
        result = MessageFormatter.arrayFormat("{}{}", new Object[] { "a", new int[] { 1, 2 } }).getMessage();
        assertEquals("a[1, 2]", result);

        // float[]
        result = MessageFormatter.arrayFormat("{}{}", new Object[] { "a", new float[] { 1, 2 } }).getMessage();
        assertEquals("a[1.0, 2.0]", result);

        // double[]
        result = MessageFormatter.arrayFormat("{}{}", new Object[] { "a", new double[] { 1, 2 } }).getMessage();
        assertEquals("a[1.0, 2.0]", result);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free