FixedCompositeByteBufTest Class — netty Architecture
Architecture documentation for the FixedCompositeByteBufTest class in FixedCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"] 4e372105_75d8_8a89_bc64_3fd917718a68["FixedCompositeByteBufTest.java"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|defined in| 4e372105_75d8_8a89_bc64_3fd917718a68 dba9e695_d8d3_2088_bce0_4f1c539954db["ByteBuf()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| dba9e695_d8d3_2088_bce0_4f1c539954db 2918ac41_ad2b_9cf5_11d0_3cfcaa0ccc49["testSetBoolean()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 2918ac41_ad2b_9cf5_11d0_3cfcaa0ccc49 2b610114_72e9_1ec6_dc2e_864153b2d9d3["testSetByte()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 2b610114_72e9_1ec6_dc2e_864153b2d9d3 e26ca1a0_7714_e1f4_de19_abf823f566fb["testSetBytesWithByteBuf()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| e26ca1a0_7714_e1f4_de19_abf823f566fb bb0a84d5_27fb_c329_ccb1_7ebe50eab38c["testSetBytesWithByteBuffer()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| bb0a84d5_27fb_c329_ccb1_7ebe50eab38c 4103a5f1_8bd4_bd19_21cc_f49fa0cbaa0b["testSetBytesWithInputStream()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 4103a5f1_8bd4_bd19_21cc_f49fa0cbaa0b c10a5c83_0706_323c_345a_19d5ae245665["testSetBytesWithChannel()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| c10a5c83_0706_323c_345a_19d5ae245665 8f70d0c1_8956_496e_9f26_6e9825eae39d["testSetChar()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 8f70d0c1_8956_496e_9f26_6e9825eae39d a14e55ae_e09c_630c_8f56_3ebe06d0dbc9["testSetDouble()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| a14e55ae_e09c_630c_8f56_3ebe06d0dbc9 25514659_cb29_88c8_19ea_8be7e535c961["testSetFloat()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 25514659_cb29_88c8_19ea_8be7e535c961 efeba394_5bfc_05e7_2023_302a5d880e21["testSetInt()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| efeba394_5bfc_05e7_2023_302a5d880e21 1f350637_7b4f_6257_09fc_b62c74730491["testSetLong()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 1f350637_7b4f_6257_09fc_b62c74730491 78e75f4c_6c26_2c3d_9bd8_3f655e5b8e66["testSetMedium()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016 -->|method| 78e75f4c_6c26_2c3d_9bd8_3f655e5b8e66
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 38–529
public class FixedCompositeByteBufTest {
private static ByteBuf newBuffer(ByteBuf... buffers) {
return new FixedCompositeByteBuf(UnpooledByteBufAllocator.DEFAULT, buffers);
}
@Test
public void testSetBoolean() {
final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
try {
assertThrows(ReadOnlyBufferException.class, new Executable() {
@Override
public void execute() {
buf.setBoolean(0, true);
}
});
} finally {
buf.release();
}
}
@Test
public void testSetByte() {
final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
try {
assertThrows(ReadOnlyBufferException.class, new Executable() {
@Override
public void execute() {
buf.setByte(0, 1);
}
});
} finally {
buf.release();
}
}
@Test
public void testSetBytesWithByteBuf() {
final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
final ByteBuf src = wrappedBuffer(new byte[4]);
try {
assertThrows(ReadOnlyBufferException.class, new Executable() {
@Override
public void execute() {
buf.setBytes(0, src);
}
});
} finally {
buf.release();
src.release();
}
}
@Test
public void testSetBytesWithByteBuffer() {
final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
try {
assertThrows(ReadOnlyBufferException.class, new Executable() {
@Override
public void execute() {
buf.setBytes(0, ByteBuffer.wrap(new byte[4]));
}
});
} finally {
buf.release();
}
}
@Test
public void testSetBytesWithInputStream() {
final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
try {
assertThrows(ReadOnlyBufferException.class, new Executable() {
@Override
public void execute() throws IOException {
buf.setBytes(0, new ByteArrayInputStream(new byte[4]), 4);
}
});
} finally {
buf.release();
}
Source
Frequently Asked Questions
What is the FixedCompositeByteBufTest class?
FixedCompositeByteBufTest is a class in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java.
Where is FixedCompositeByteBufTest defined?
FixedCompositeByteBufTest is defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free