- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for setReadWrite (0.07 seconds)
-
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) -
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>. *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 28K bytes - Click Count (1) -
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 { @MockCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.8K bytes - Click Count (0)