Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for setReadWrite (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/SmbResourceTest.java

                assertDoesNotThrow(() -> {
                    mockResource.setReadOnly();
                    mockResource.setReadWrite();
                }, "File modification operations should not throw exception");
    
                verify(mockResource).setReadOnly();
                verify(mockResource).setReadWrite();
            }
    
            @Test
            @DisplayName("file size and space operations should return valid values")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

                attrExpiration = System.currentTimeMillis() + attrExpirationPeriod;
                isExists = true;
            }
    
            if ((attributes & ATTR_READONLY) != 0) {
                setReadWrite();
            }
    
            /*
             * Delete or Delete Directory Request / Response
             */
    
            if (LogStream.level >= 3) {
                log.println("delete: " + fileName);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Test setting attributes
            file.setReadOnly();
            assertFalse(file.canWrite(), "Should not be writable when read-only");
    
            file.setReadWrite();
            assertTrue(file.canWrite(), "Should be writable after setReadWrite");
        }
    
        @Test
        void testFileOverwriteWithDifferentContent() throws Exception {
            long timestamp = System.currentTimeMillis();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange
                doReturn(SmbConstants.ATTR_READONLY).when(smbFile).getAttributes();
                doNothing().when(smbFile).setAttributes(anyInt());
    
                // Act
                smbFile.setReadWrite();
    
                // Assert
                verify(smbFile).setAttributes(0);
            }
        }
    
        @Nested
        class WhenManipulatingFiles {
    
            @Mock
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
Back to Top