Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testAppendMode (0.85 sec)

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

            assertDoesNotThrow(() -> outputStream.write(data, 5, 5)); // valid - will consume second mock (5)
        }
    
        @Test
        void testAppendMode() throws IOException, CIFSException {
            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
            when(mockTreeHandle.getSendBufferSize()).thenReturn(65536);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Reset to read-write for cleanup
            file.setReadWrite();
            assertTrue(file.canWrite(), "File should be writable after setReadWrite");
        }
    
        @Test
        void testAppendMode() throws Exception {
            // Test SMB file append mode
            long timestamp = System.currentTimeMillis();
            SmbFile file = new SmbFile(baseUrl + "shared/append_" + timestamp + ".txt", context);
    
    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