Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testZeroValues (0.2 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            int informationLevel = SMBUtil.readInt2(buffer, 4);
            assertEquals(Trans2FindFirst2.SMB_FILE_BOTH_DIRECTORY_INFO, informationLevel);
        }
    
        @Test
        void testZeroValues() {
            // Test with zero values for numeric parameters
            trans2FindNext2 = new Trans2FindNext2(config, 0, 0, "", 0, 0);
    
            assertNotNull(trans2FindNext2);
    
            byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            assertEquals(0x5678, SMBUtil.readInt2(dst, offset + 4));
            assertEquals(0x01, dst[offset + 6]);
        }
    
        @Test
        @DisplayName("Test edge case with zero completion filter and FID")
        void testZeroValues() {
            notifyChange = new NtTransNotifyChange(mockConfig, 0, 0, false);
            byte[] dst = new byte[10];
    
            int bytesWritten = notifyChange.writeSetupWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                assertEquals(4L * 8192L * 1024L, smbInfoAllocation.getCapacity());
            }
    
            @Test
            @DisplayName("Should handle zero values")
            void testZeroValues() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[24];
    
                smbInfoAllocation.decode(buffer, 0, buffer.length);
    
                assertEquals(0, smbInfoAllocation.getCapacity());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top