Home / Function/ testCheckNotNullWithIAE() — netty Function Reference

testCheckNotNullWithIAE() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 96–114

    @Test
    public void testCheckNotNullWithIAE() {
        Exception actualEx = null;
        try {
            ObjectUtil.checkNotNullWithIAE(NON_NULL_OBJECT, NON_NULL_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNull(actualEx, TEST_RESULT_NULLEX_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkNotNullWithIAE(NULL_OBJECT, NULL_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNotNull(actualEx, TEST_RESULT_NULLEX_OK);
        assertTrue(actualEx instanceof IllegalArgumentException, TEST_RESULT_EXTYPE_NOK);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free