Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testDecodeWithNegativeValues (0.09 sec)

  1. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            // Verify
            assertEquals(22, bytesDecoded);
            assertEquals(minLong, fileStandardInfo.getSize());
        }
    
        @Test
        @DisplayName("Test decode with negative values")
        void testDecodeWithNegativeValues() throws SMBProtocolDecodingException {
            // Prepare test data with negative values
            byte[] buffer = new byte[22];
            long negativeLong = -1L;
            int negativeInt = -1;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            // The decode method returns only the header size (16 bytes)\n        assertEquals(16, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test decode with negative values")
        void testDecodeWithNegativeValues() throws SMBProtocolDecodingException {
            // Prepare test data with negative values (when interpreted as signed)
            byte[] buffer = new byte[16];
            int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            assertEquals(expectedFree, smbInfoAllocation.getFree());
        }
    
        @Test
        @DisplayName("Test decode with negative values interpreted as unsigned")
        void testDecodeWithNegativeValues() throws SMBProtocolDecodingException {
            // Prepare test data with values that would be negative if signed
            byte[] buffer = new byte[22];
            int idFileSystem = -1; // 0xFFFFFFFF
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top