Home / Function/ testSetShort() — netty Function Reference

testSetShort() — netty Function Reference

Architecture documentation for the testSetShort() function in ReadOnlyDirectByteBufferBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  47edbc3e_ddc4_5866_a948_88eb6c434dee["testSetShort()"]
  2436e747_1306_235e_86df_d12765b22d51["ReadOnlyDirectByteBufferBufTest"]
  47edbc3e_ddc4_5866_a948_88eb6c434dee -->|defined in| 2436e747_1306_235e_86df_d12765b22d51
  style 47edbc3e_ddc4_5866_a948_88eb6c434dee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 165–178

    @Test
    public void testSetShort() {
        final ByteBuf buf = buffer(allocate(8).asReadOnlyBuffer());
        try {
            assertThrows(ReadOnlyBufferException.class, new Executable() {
                @Override
                public void execute() {
                    buf.setShort(0, 1);
                }
            });
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free