Home / Function/ testDecodeUnknownFrame() — netty Function Reference

testDecodeUnknownFrame() — netty Function Reference

Architecture documentation for the testDecodeUnknownFrame() function in SpdyFrameCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  757f413c_9c68_ff8e_44ec_006b60351bd1["testDecodeUnknownFrame()"]
  1ad92d84_b4de_7e27_0722_9e65bbb5aa45["SpdyFrameCodecTest"]
  757f413c_9c68_ff8e_44ec_006b60351bd1 -->|defined in| 1ad92d84_b4de_7e27_0722_9e65bbb5aa45
  style 757f413c_9c68_ff8e_44ec_006b60351bd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameCodecTest.java lines 41–57

    @Test
    public void testDecodeUnknownFrame() {
        final SpdyFrameEncoder encoder = new SpdyFrameEncoder(SpdyVersion.SPDY_3_1);
        final ByteBuf buf = encoder.encodeUnknownFrame(
            UnpooledByteBufAllocator.DEFAULT,
            200,
            (byte) 13,
            Unpooled.wrappedBuffer("Hello, world!".getBytes(CharsetUtil.UTF_8)));
        channel.writeInbound(buf);
        SpdyUnknownFrame frame = channel.readInbound();
        Assertions.assertNotNull(frame);
        Assertions.assertEquals(200, frame.frameType());
        Assertions.assertEquals((byte) 13, frame.flags());
        ByteBuf data = frame.content();
        Assertions.assertEquals("Hello, world!", data.toString(CharsetUtil.UTF_8));
        data.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecodeUnknownFrame() do?
testDecodeUnknownFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameCodecTest.java.
Where is testDecodeUnknownFrame() defined?
testDecodeUnknownFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameCodecTest.java at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free