- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setReadOnly (0.04 sec)
-
src/test/java/jcifs/SmbResourceTest.java
// When/Then assertDoesNotThrow(() -> { mockResource.setReadOnly(); mockResource.setReadWrite(); }, "File modification operations should not throw exception"); verify(mockResource).setReadOnly(); verify(mockResource).setReadWrite(); } @Test
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/SmbFileTest.java
// Arrange doReturn(SmbConstants.ATTR_NORMAL).when(smbFile).getAttributes(); doNothing().when(smbFile).setAttributes(anyInt()); // Act smbFile.setReadOnly(); // Assert verify(smbFile).setAttributes(SmbConstants.ATTR_NORMAL | SmbConstants.ATTR_READONLY); } @Test void testSetReadWrite() throws SmbException {
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
* getAttributes() | ATTR_READ_ONLY )</code>. * * @throws CIFSException if an error occurs modifying the resource */ void setReadOnly() throws CIFSException; /** * Set the attributes of this file. Attributes are composed into a * bitset by bitwise ORing the <code>ATTR_*</code> constants. Setting the
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1)