Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testReadInt2WithOffset (0.07 seconds)

  1. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            int result = SessionServicePacket.readInt2(src, 0);
    
            assertEquals(0x1234, result);
        }
    
        @Test
        @DisplayName("readInt2 with offset should read from correct position")
        void testReadInt2WithOffset() {
            byte[] src = { (byte) 0xFF, (byte) 0xFF, (byte) 0xAB, (byte) 0xCD };
            int result = SessionServicePacket.readInt2(src, 2);
    
            assertEquals(0xABCD, result);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.5K bytes
    - Click Count (0)
Back to Top