Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFileWriteAndRead (0.58 sec)

  1. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertFalse(file.isDirectory(), "Should not be identified as a directory");
            assertEquals(0, file.length(), "New file should have zero length");
        }
    
        @Test
        void testFileWriteAndRead() throws Exception {
            SmbFile file = new SmbFile(baseUrl + "shared/content.txt", context);
            String testContent = "Hello, SMB World!\nThis is a test file.";
    
            // Write content to file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top