Home / Function/ testCheckPositiveOrZeroLongString() — netty Function Reference

testCheckPositiveOrZeroLongString() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 280–306

    @Test
    public void testCheckPositiveOrZeroLongString() {
        Exception actualEx = null;
        try {
            ObjectUtil.checkPositiveOrZero(POS_ONE_LONG, NUM_POS_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNull(actualEx, TEST_RESULT_NULLEX_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkPositiveOrZero(ZERO_LONG, NUM_ZERO_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNull(actualEx, TEST_RESULT_NULLEX_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkPositiveOrZero(NEG_ONE_LONG, NUM_NEG_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 testCheckPositiveOrZeroLongString() do?
testCheckPositiveOrZeroLongString() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java.
Where is testCheckPositiveOrZeroLongString() defined?
testCheckPositiveOrZeroLongString() is defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java at line 280.

Analyze Your Own Codebase

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

Try Supermodel Free