BigEndianHeapByteBufTest Class — netty Architecture
Architecture documentation for the BigEndianHeapByteBufTest class in BigEndianHeapByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c672d8d2_533f_0d67_826e_f3246874147f["BigEndianHeapByteBufTest"] 8d8cad86_94dc_2c2b_83e6_0655188e8ec0["BigEndianHeapByteBufTest.java"] c672d8d2_533f_0d67_826e_f3246874147f -->|defined in| 8d8cad86_94dc_2c2b_83e6_0655188e8ec0 d326042b_babd_5cc2_b4ed_870c72a7103e["ByteBuf()"] c672d8d2_533f_0d67_826e_f3246874147f -->|method| d326042b_babd_5cc2_b4ed_870c72a7103e 8e6d1d79_0ebe_3cba_482e_6edf2f75bbd4["shouldNotAllowNullInConstructor1()"] c672d8d2_533f_0d67_826e_f3246874147f -->|method| 8e6d1d79_0ebe_3cba_482e_6edf2f75bbd4 8e0e5a49_f3b5_6d0e_be66_2e83bd24d540["shouldNotAllowNullInConstructor2()"] c672d8d2_533f_0d67_826e_f3246874147f -->|method| 8e0e5a49_f3b5_6d0e_be66_2e83bd24d540
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/BigEndianHeapByteBufTest.java lines 27–55
public class BigEndianHeapByteBufTest extends AbstractByteBufTest {
@Override
protected ByteBuf newBuffer(int length, int maxCapacity) {
ByteBuf buffer = Unpooled.buffer(length, maxCapacity);
assertEquals(0, buffer.writerIndex());
return buffer;
}
@Test
public void shouldNotAllowNullInConstructor1() {
assertThrows(NullPointerException.class, new Executable() {
@Override
public void execute() {
new UnpooledHeapByteBuf(null, new byte[1], 0);
}
});
}
@Test
public void shouldNotAllowNullInConstructor2() {
assertThrows(NullPointerException.class, new Executable() {
@Override
public void execute() {
new UnpooledHeapByteBuf(UnpooledByteBufAllocator.DEFAULT, null, 0);
}
});
}
}
Source
Frequently Asked Questions
What is the BigEndianHeapByteBufTest class?
BigEndianHeapByteBufTest is a class in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/BigEndianHeapByteBufTest.java.
Where is BigEndianHeapByteBufTest defined?
BigEndianHeapByteBufTest is defined in buffer/src/test/java/io/netty/buffer/BigEndianHeapByteBufTest.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free