ensureWritableWithNotEnoughSpaceShouldThrow() — netty Function Reference
Architecture documentation for the ensureWritableWithNotEnoughSpaceShouldThrow() function in AbstractPooledByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 85d9a4d2_4350_685f_6266_1a6da0601c39["ensureWritableWithNotEnoughSpaceShouldThrow()"] 0134bc31_3b19_a967_d2aa_113b2ccd098c["AbstractPooledByteBufTest"] 85d9a4d2_4350_685f_6266_1a6da0601c39 -->|defined in| 0134bc31_3b19_a967_d2aa_113b2ccd098c style 85d9a4d2_4350_685f_6266_1a6da0601c39 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractPooledByteBufTest.java lines 53–66
@Test
public void ensureWritableWithNotEnoughSpaceShouldThrow() {
final ByteBuf buf = newBuffer(1, 10);
try {
assertThrows(IndexOutOfBoundsException.class, new Executable() {
@Override
public void execute() {
buf.ensureWritable(11);
}
});
} finally {
buf.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ensureWritableWithNotEnoughSpaceShouldThrow() do?
ensureWritableWithNotEnoughSpaceShouldThrow() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractPooledByteBufTest.java.
Where is ensureWritableWithNotEnoughSpaceShouldThrow() defined?
ensureWritableWithNotEnoughSpaceShouldThrow() is defined in buffer/src/test/java/io/netty/buffer/AbstractPooledByteBufTest.java at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free