Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for createNewFile (1.47 sec)

  1. src/test/java/jcifs/smb/SmbFileTest.java

            void testCreateNewFileWhenExists() throws SmbException, IOException {
                // Arrange
                doReturn(true).when(smbFile).exists();
                doNothing().when(smbFile).createNewFile();
    
                // Act
                smbFile.createNewFile();
    
                // Assert - should not throw exception when file exists
            }
        }
    
        @Nested
        class WhenHandlingConnections {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

                                project.layout.buildDirectory.file("tmp/teŝt files/leftover/leftover").get().asFile.apply {
                                    parentFile.mkdirs()
                                    createNewFile()
                                }
                            }
                        }
                        useJUnitPlatform()
                    }
                }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jun 18 10:36:40 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceTest.java

                assertNotNull(clazz.getMethod("canWrite"), "Should have canWrite method");
                assertNotNull(clazz.getMethod("length"), "Should have length method");
                assertNotNull(clazz.getMethod("createNewFile"), "Should have createNewFile method");
                assertNotNull(clazz.getMethod("mkdir"), "Should have mkdir method");
                assertNotNull(clazz.getMethod("mkdirs"), "Should have mkdirs method");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  4. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

            then:
            assertFoundDeadLinks()
        }
    
        private File createJavadocForClass(String path) {
            new File(docsRoot, "javadoc/${path}.html").tap {
                parentFile.mkdirs()
                createNewFile()
                text = "Generated javadoc HTML goes here"
            }
        }
    
        private GradleRunner run(String... args) {
            return GradleRunner.create()
                .withProjectDir(projectDir)
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Aug 21 16:24:54 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            String path = "target/test-repositories/" + component() + "/bad-local-repository";
    
            File f = new File(getBasedir(), path);
    
            f.createNewFile();
    
            return artifactRepositoryFactory.createArtifactRepository(
                    "test", "file://" + f.getPath(), repoLayout, null, null);
        }
    
        protected String getRepositoryLayout() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 09:40:15 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  6. docs/smb3-features/02-persistent-handles-design.md

        CIFSContext context = getTestContext();
        context.getConfig().setProperty("jcifs.smb.client.useDurableHandles", "true");
        
        SmbFile file = new SmbFile("smb://server/share/test.txt", context);
        file.createNewFile();
        
        // Write some data
        try (OutputStream os = file.getOutputStream()) {
            os.write("test data".getBytes());
        }
        
        // Simulate network disconnection
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/LmhostsTest.java

        void testIOExceptionDuringRead() throws IOException {
            // Create a file that exists but will cause an IOException when read
            File lmhostsFile = tempDir.resolve("lmhosts").toFile();
            lmhostsFile.createNewFile();
    
            // Make file unreadable on Unix-like systems
            boolean isWindows = System.getProperty("os.name").toLowerCase().contains("windows");
            if (!isWindows) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  8. docs/smb3-features/01-smb3-lease-design.md

        context.getConfig().setProperty("jcifs.smb.client.useLeases", "true");
        
        try (SmbFile file = new SmbFile("smb://server/share/test.txt", context)) {
            // Open file with lease
            file.createNewFile();
            
            // Verify lease was granted
            assertTrue(file.canCacheRead());
            
            // Write should be cached
            try (OutputStream os = file.getOutputStream()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. docs/smb3-features/04-directory-leasing-design.md

        
        // Get initial listing (establishes cache)
        SmbFile[] initialFiles = dir.listFiles();
        
        // Create new file
        testFile.createNewFile();
        
        // Wait for change notification
        Thread.sleep(2000);
        
        // Cache should be invalidated, new listing should include new file
        SmbFile[] updatedFiles = dir.listFiles();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  10. docs/smb3-features/05-rdma-smb-direct-design.md

        
        SmbFile file = new SmbFile("smb://server/share/test.txt", context);
        
        // Should work even if RDMA provider is not available
        file.createNewFile();
        assertTrue(file.exists());
    }
    ```
    
    ## 8. Performance Monitoring
    
    ### 8.1 RDMA Statistics
    ```java
    public class RdmaStatistics {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top