testCapacityEnforceMaxCapacity() — netty Function Reference
Architecture documentation for the testCapacityEnforceMaxCapacity() function in AbstractByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c584cbb0_67d5_5b1b_0809_bab3316eb5ea["testCapacityEnforceMaxCapacity()"] 6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"] c584cbb0_67d5_5b1b_0809_bab3316eb5ea -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242 style c584cbb0_67d5_5b1b_0809_bab3316eb5ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 6138–6153
@Test
public void testCapacityEnforceMaxCapacity() {
final ByteBuf buffer = newBuffer(3, 13);
assertEquals(13, buffer.maxCapacity());
assertEquals(3, buffer.capacity());
try {
assertThrows(IllegalArgumentException.class, new Executable() {
@Override
public void execute() {
buffer.capacity(14);
}
});
} finally {
buffer.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testCapacityEnforceMaxCapacity() do?
testCapacityEnforceMaxCapacity() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java.
Where is testCapacityEnforceMaxCapacity() defined?
testCapacityEnforceMaxCapacity() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java at line 6138.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free