Home / Function/ testGzipFooterValidationSuccess() — netty Function Reference

testGzipFooterValidationSuccess() — netty Function Reference

Architecture documentation for the testGzipFooterValidationSuccess() function in JdkZlibTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b8c867dc_2db1_aa3e_c146_857ee6705dc6["testGzipFooterValidationSuccess()"]
  4c83b538_e9fd_3b12_c32e_629bfd12e1ce["JdkZlibTest"]
  b8c867dc_2db1_aa3e_c146_857ee6705dc6 -->|defined in| 4c83b538_e9fd_3b12_c32e_629bfd12e1ce
  style b8c867dc_2db1_aa3e_c146_857ee6705dc6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java lines 195–210

    @Test
    public void testGzipFooterValidationSuccess() throws Exception {
        byte[] data = "hello gzip world".getBytes(CharsetUtil.UTF_8);
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        GZIPOutputStream gzipOut = new GZIPOutputStream(baos);
        gzipOut.write(data);
        gzipOut.close();

        byte[] compressed = baos.toByteArray();
        EmbeddedChannel ch = new EmbeddedChannel(new JdkZlibDecoder(ZlibWrapper.GZIP, Integer.MAX_VALUE));
        assertTrue(ch.writeInbound(Unpooled.wrappedBuffer(compressed)));
        ByteBuf result = ch.readInbound();
        assertEquals(Unpooled.wrappedBuffer(data), result);
        result.release();
        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free