testSetBytesWithNullByteArray() — netty Function Reference
Architecture documentation for the testSetBytesWithNullByteArray() function in UnsafeByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 71447cf4_2674_e1e7_2df6_02328f81be02["testSetBytesWithNullByteArray()"] 9a18ae5b_9169_5444_e060_c39f7f301455["UnsafeByteBufUtilTest"] 71447cf4_2674_e1e7_2df6_02328f81be02 -->|defined in| 9a18ae5b_9169_5444_e060_c39f7f301455 style 71447cf4_2674_e1e7_2df6_02328f81be02 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/UnsafeByteBufUtilTest.java lines 140–157
@Test
public void testSetBytesWithNullByteArray() {
final UnpooledByteBufAllocator alloc = new UnpooledByteBufAllocator(true);
final UnpooledDirectByteBuf targetBuffer = new UnpooledDirectByteBuf(alloc, 8, 8);
try {
assertThrows(NullPointerException.class, new Executable() {
@Override
public void execute() {
UnsafeByteBufUtil.setBytes(targetBuffer,
directBufferAddress(targetBuffer.nioBuffer()), 0, (byte[]) null, 0, 8);
}
});
} finally {
targetBuffer.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSetBytesWithNullByteArray() do?
testSetBytesWithNullByteArray() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/UnsafeByteBufUtilTest.java.
Where is testSetBytesWithNullByteArray() defined?
testSetBytesWithNullByteArray() is defined in buffer/src/test/java/io/netty/buffer/UnsafeByteBufUtilTest.java at line 140.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free