testFailFastTooLongFrameRecovery() — netty Function Reference
Architecture documentation for the testFailFastTooLongFrameRecovery() function in LengthFieldBasedFrameDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ed61b291_0e7c_ca7d_504b_43eda7496731["testFailFastTooLongFrameRecovery()"] 7e734a18_9dbb_0188_2134_ac583286d1f8["LengthFieldBasedFrameDecoderTest"] ed61b291_0e7c_ca7d_504b_43eda7496731 -->|defined in| 7e734a18_9dbb_0188_2134_ac583286d1f8 style ed61b291_0e7c_ca7d_504b_43eda7496731 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java lines 54–72
@Test
public void testFailFastTooLongFrameRecovery() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(
new LengthFieldBasedFrameDecoder(5, 0, 4, 0, 4));
for (int i = 0; i < 2; i ++) {
try {
assertTrue(ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 0, 0, 0, 2 })));
fail(DecoderException.class.getSimpleName() + " must be raised.");
} catch (TooLongFrameException e) {
// Expected
}
ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 0, 0, 0, 0, 0, 1, 'A' }));
ByteBuf buf = ch.readInbound();
assertEquals("A", buf.toString(CharsetUtil.ISO_8859_1));
buf.release();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testFailFastTooLongFrameRecovery() do?
testFailFastTooLongFrameRecovery() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java.
Where is testFailFastTooLongFrameRecovery() defined?
testFailFastTooLongFrameRecovery() is defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free