Home / Function/ testCheckNonEmptyCharSequenceString() — netty Function Reference

testCheckNonEmptyCharSequenceString() — netty Function Reference

Architecture documentation for the testCheckNonEmptyCharSequenceString() function in ObjectUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b7424de9_2b0d_cc12_49b2_be6389d763ed["testCheckNonEmptyCharSequenceString()"]
  8fcf4c56_0a48_2ee3_0436_44c30076d4c0["ObjectUtilTest"]
  b7424de9_2b0d_cc12_49b2_be6389d763ed -->|defined in| 8fcf4c56_0a48_2ee3_0436_44c30076d4c0
  style b7424de9_2b0d_cc12_49b2_be6389d763ed fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 521–557

    @Test
    public void testCheckNonEmptyCharSequenceString() {
        Exception actualEx = null;

        try {
            ObjectUtil.checkNonEmpty((CharSequence) NULL_CHARSEQUENCE, NULL_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNotNull(actualEx, TEST_RESULT_NULLEX_OK);
        assertTrue(actualEx instanceof NullPointerException, TEST_RESULT_EXTYPE_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkNonEmpty((CharSequence) NON_NULL_CHARSEQUENCE, NON_NULL_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNull(actualEx, TEST_RESULT_NULLEX_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkNonEmpty((CharSequence) NON_NULL_EMPTY_CHARSEQUENCE, NON_NULL_EMPTY_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNotNull(actualEx, TEST_RESULT_NULLEX_OK);
        assertTrue(actualEx instanceof IllegalArgumentException, TEST_RESULT_EXTYPE_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkNonEmpty((CharSequence) NON_NULL_WHITESPACE_STRING, NON_NULL_EMPTY_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNull(actualEx, TEST_RESULT_NULLEX_NOK);
    }

Domain

Subdomains

Frequently Asked Questions

What does testCheckNonEmptyCharSequenceString() do?
testCheckNonEmptyCharSequenceString() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java.
Where is testCheckNonEmptyCharSequenceString() defined?
testCheckNonEmptyCharSequenceString() is defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java at line 521.

Analyze Your Own Codebase

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

Try Supermodel Free