Home / Function/ testUnexpectedBlockIdentifier() — netty Function Reference

testUnexpectedBlockIdentifier() — netty Function Reference

Architecture documentation for the testUnexpectedBlockIdentifier() function in LzfDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  61cabf77_1488_65aa_d134_9d92428d4c13["testUnexpectedBlockIdentifier()"]
  fd4434e9_ec0d_236c_cba1_1760fabaa938["LzfDecoderTest"]
  61cabf77_1488_65aa_d134_9d92428d4c13 -->|defined in| fd4434e9_ec0d_236c_cba1_1760fabaa938
  style 61cabf77_1488_65aa_d134_9d92428d4c13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/LzfDecoderTest.java lines 39–52

    @Test
    public void testUnexpectedBlockIdentifier() {
        final ByteBuf in = Unpooled.buffer();
        in.writeShort(0x1234);  //random value
        in.writeByte(BLOCK_TYPE_NON_COMPRESSED);
        in.writeShort(0);

        assertThrows(DecompressionException.class, new Executable() {
            @Override
            public void execute() {
                channel.writeInbound(in);
            }
        }, "unexpected block identifier");
    }

Domain

Subdomains

Frequently Asked Questions

What does testUnexpectedBlockIdentifier() do?
testUnexpectedBlockIdentifier() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/LzfDecoderTest.java.
Where is testUnexpectedBlockIdentifier() defined?
testUnexpectedBlockIdentifier() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/LzfDecoderTest.java at line 39.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free