- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for setReadWrite (0.45 sec)
-
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")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* <code>setAttributes( getAttributes() & ~ATTR_READONLY )</code>. * * @throws CIFSException if an error occurs modifying the resource */ void setReadWrite() throws CIFSException; /** * Make this file read-only. This is shorthand for <code>setAttributes( * getAttributes() | ATTR_READ_ONLY )</code>. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
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); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
if (!exists()) { throw new SmbException(NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND, null); } if ((this.attributes & ATTR_READONLY) != 0) { setReadWrite(); } /* * Delete or Delete Directory Request / Response */ if (log.isDebugEnabled()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)