- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for canWrite (0.08 seconds)
-
src/test/java/jcifs/SmbResourceTest.java
when(mockResource.canRead()).thenReturn(true); when(mockResource.canWrite()).thenReturn(false); // When boolean canRead = mockResource.canRead(); boolean canWrite = mockResource.canWrite(); // Then assertTrue(canRead, "Should be readable"); assertFalse(canWrite, "Should not be writable"); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
cmd/storage-rest-server.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 45.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileTest.java
assertTrue(smbFile.canWrite()); } @Test void testCannotWriteReadOnlyFile() throws SmbException { // Arrange // Mock the canWrite method directly since it uses internal fields doReturn(false).when(smbFile).canWrite(); // Act & Assert assertFalse(smbFile.canWrite()); } @Test
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) -
src/main/java/jcifs/SmbResource.java
* * @return <code>true</code> if the resource exists is not marked * read-only * @throws CIFSException if an error occurs accessing the resource */ boolean canWrite() throws CIFSException; /** * Tests to see if the file this <code>SmbResource</code> represents can be * read. Because any file, directory, or other resource can be read if itCreated: 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/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 {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlTest.java
// ## Assert ## assertNotNull(tmpDir); assertTrue(tmpDir.exists()); assertTrue(tmpDir.isDirectory()); assertTrue(tmpDir.canRead()); assertTrue(tmpDir.canWrite()); assertEquals(new File(System.getProperty("java.io.tmpdir")).getAbsolutePath(), tmpDir.getAbsolutePath()); } @Test public void test_AllHttpMethodFactories() {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 16.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
return false; } // Check if parent directory is writable File parentDir = outputFile.getParentFile(); if (parentDir != null && !parentDir.canWrite()) { return false; } // Simulate thumbnail generation try { if (!outputFile.exists()) { outputFile.createNewFile();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 11.7K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* @return <code>true</code> if the resource exists is not marked * read-only * @throws SmbException if an error occurs while checking write permissions */ public boolean canWrite() throws SmbException { if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for writing? return true; } return exists() && (attributes & ATTR_READONLY) == 0; }
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) -
src/main/java/jcifs/smb/SmbFile.java
return true; } return exists(); // try opening and catch sharing violation? } @Override public boolean canWrite() throws SmbException { if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for writing? return true; } return exists() && (this.attributes & ATTR_READONLY) == 0; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
final File tempFile = systemHelper.createTempFile("test", ".tmp"); assertNotNull(tempFile); assertTrue(tempFile.exists()); assertTrue(tempFile.canRead()); assertTrue(tempFile.canWrite()); tempFile.delete(); } @Test public void test_calibrateCpuLoad_withTimeout() { systemHelper.setSystemCpuCheckInterval(100L);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 44.4K bytes - Click Count (0)