testCheckNonEmptyByteArrayString() — netty Function Reference
Architecture documentation for the testCheckNonEmptyByteArrayString() function in ObjectUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2d49ac8c_f830_5295_b8a8_a23691df609e["testCheckNonEmptyByteArrayString()"] 8fcf4c56_0a48_2ee3_0436_44c30076d4c0["ObjectUtilTest"] 2d49ac8c_f830_5295_b8a8_a23691df609e -->|defined in| 8fcf4c56_0a48_2ee3_0436_44c30076d4c0 style 2d49ac8c_f830_5295_b8a8_a23691df609e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 394–422
@Test
public void testCheckNonEmptyByteArrayString() {
Exception actualEx = null;
try {
ObjectUtil.checkNonEmpty((byte[]) NULL_OBJECT, 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((byte[]) NON_NULL_FILLED_BYTE_ARRAY, NON_NULL_NAME);
} catch (Exception e) {
actualEx = e;
}
assertNull(actualEx, TEST_RESULT_NULLEX_NOK);
actualEx = null;
try {
ObjectUtil.checkNonEmpty((byte[]) NON_NULL_EMPTY_BYTE_ARRAY, NON_NULL_EMPTY_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 testCheckNonEmptyByteArrayString() do?
testCheckNonEmptyByteArrayString() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java.
Where is testCheckNonEmptyByteArrayString() defined?
testCheckNonEmptyByteArrayString() is defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java at line 394.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free