Home / Function/ testSetMedium() — netty Function Reference

testSetMedium() — netty Function Reference

Architecture documentation for the testSetMedium() function in FixedCompositeByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  78e75f4c_6c26_2c3d_9bd8_3f655e5b8e66["testSetMedium()"]
  0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"]
  78e75f4c_6c26_2c3d_9bd8_3f655e5b8e66 -->|defined in| 0580ab1c_4068_2dfc_70ec_23a7d5440016
  style 78e75f4c_6c26_2c3d_9bd8_3f655e5b8e66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 235–248

    @Test
    public void testSetMedium() {
        final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
        try {
            assertThrows(ReadOnlyBufferException.class, new Executable() {
                @Override
                public void execute() {
                    buf.setMedium(0, 1);
                }
            });
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testSetMedium() do?
testSetMedium() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java.
Where is testSetMedium() defined?
testSetMedium() is defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java at line 235.

Analyze Your Own Codebase

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

Try Supermodel Free