testCheckPositiveIntString() — netty Function Reference
Architecture documentation for the testCheckPositiveIntString() function in ObjectUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5024077d_58ab_9ac8_52c1_8051375651ac["testCheckPositiveIntString()"] 8fcf4c56_0a48_2ee3_0436_44c30076d4c0["ObjectUtilTest"] 5024077d_58ab_9ac8_52c1_8051375651ac -->|defined in| 8fcf4c56_0a48_2ee3_0436_44c30076d4c0 style 5024077d_58ab_9ac8_52c1_8051375651ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 136–163
@Test
public void testCheckPositiveIntString() {
Exception actualEx = null;
try {
ObjectUtil.checkPositive(POS_ONE_INT, NUM_POS_NAME);
} catch (Exception e) {
actualEx = e;
}
assertNull(actualEx, TEST_RESULT_NULLEX_NOK);
actualEx = null;
try {
ObjectUtil.checkPositive(ZERO_INT, 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_INT, NUM_NEG_NAME);
} catch (Exception e) {
actualEx = e;
}
assertNotNull(actualEx, TEST_RESULT_NULLEX_OK);
assertTrue(actualEx instanceof IllegalArgumentException, TEST_RESULT_EXTYPE_NOK);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testCheckPositiveIntString() do?
testCheckPositiveIntString() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java.
Where is testCheckPositiveIntString() defined?
testCheckPositiveIntString() is defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java at line 136.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free