Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testDecodeWithEmptyFilename (0.25 sec)

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

            int bytesWritten = info.encode(buffer, 0);
    
            assertEquals(expectedSize, bytesWritten);
        }
    
        @Test
        @DisplayName("Test decode with empty filename")
        void testDecodeWithEmptyFilename() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[100];
            buffer[0] = 0; // replaceIfExists = false
            SMBUtil.writeInt4(0, buffer, 16); // name length = 0
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            assertTrue(result.contains("shortName=TOSTRI~1.TXT"));
            assertTrue(result.contains("filename=tostring.txt"));
        }
    
        @Test
        @DisplayName("Test decode with empty filename")
        void testDecodeWithEmptyFilename() throws SMBProtocolDecodingException {
            // Prepare test data with empty filename
            byte[] buffer = createValidBuffer("", "", true);
    
            // Decode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top