Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testNegativeValuesAsUnsigned (1.46 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                assertEquals(Integer.MAX_VALUE, response.getRemaining());
            }
    
            @Test
            @DisplayName("Should handle negative values as unsigned")
            void testNegativeValuesAsUnsigned() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[64];
                SMBUtil.writeInt2(17, buffer, 0); // Structure size
                SMBUtil.writeInt2(0, buffer, 2); // Reserved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            setupCountField.setAccessible(true);
            assertEquals(255, setupCountField.get(response));
        }
    
        @Test
        @DisplayName("Test negative values handling (as unsigned)")
        void testNegativeValuesAsUnsigned() throws Exception {
            byte[] buffer = new byte[100];
            int bufferIndex = 0;
    
            // Reserved bytes
            buffer[bufferIndex] = (byte) 0xFF;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top