Home / Function/ testCheckPositiveFloatString() — netty Function Reference

testCheckPositiveFloatString() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 223–250

    @Test
    public void testCheckPositiveFloatString() {
        Exception actualEx = null;
        try {
            ObjectUtil.checkPositive(POS_ONE_FLOAT, NUM_POS_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNull(actualEx, TEST_RESULT_NULLEX_NOK);

        actualEx = null;
        try {
            ObjectUtil.checkPositive(ZERO_FLOAT, NUM_ZERO_NAME);
        } catch (Exception e) {
            actualEx = e;
        }
        assertNotNull(actualEx, TEST_RESULT_NULLEX_OK);
        assertTrue(actualEx instanceof IllegalArgumentException, TEST_RESULT_EXTYPE_NOK);

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

Analyze Your Own Codebase

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

Try Supermodel Free