Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 27 for deleteOnExit (0.13 seconds)

  1. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                final int maxCount = 50;
                final int numOfThread = 10;
    
                final File file = File.createTempFile("crawler-", "");
                file.delete();
                file.mkdirs();
                file.deleteOnExit();
                fileTransformer.setPath(file.getAbsolutePath());
                crawler.addUrl(url);
                crawler.crawlerContext.setMaxAccessCount(maxCount);
                crawler.crawlerContext.setNumOfThread(numOfThread);
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Jan 15 01:11:43 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

            }
    
            if (downloadMonitor != null) {
                wagon.addTransferListener(downloadMonitor);
            }
    
            File temp = new File(destination + ".tmp");
    
            temp.deleteOnExit();
    
            boolean downloaded = false;
    
            try {
                connectWagon(wagon, repository);
    
                boolean firstRun = true;
                boolean retry = true;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

        }
    
        @Test
        public void testIsInMemory_WithFile() throws IOException {
            // ## Arrange ##
            File tmpFile = File.createTempFile("cache-test-", ".tmp");
            tmpFile.deleteOnExit();
            ContentCache cache = new ContentCache(tmpFile);
    
            // ## Assert ##
            assertFalse(cache.isInMemory());
        }
    
        // --- getContentAsBytes() tests ---
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
    
            // Create test file with content
            testFile = File.createTempFile("test_protwords", ".txt");
            testFile.deleteOnExit();
    
            // Write test content to file
            try (FileOutputStream fos = new FileOutputStream(testFile)) {
                fos.write(getTestContent().getBytes(StandardCharsets.UTF_8));
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

        public void test_process_withPropertiesPath() throws Exception {
            // Test process method with properties path
            File tempPropFile = File.createTempFile("test_thumbnail_", ".properties");
            tempPropFile.deleteOnExit();
    
            ThumbnailGenerator.Options options = new ThumbnailGenerator.Options();
            options.propertiesPath = tempPropFile.getAbsolutePath();
            options.numOfThreads = 1;
            options.cleanup = false;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
    
            // Create a temporary test file
            testFile = File.createTempFile("test_stopwords", ".txt");
            testFile.deleteOnExit();
    
            // Write test data to file
            try (FileOutputStream fos = new FileOutputStream(testFile)) {
                fos.write(getTestContent().getBytes(StandardCharsets.UTF_8));
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

        public void test_process_withPropertiesPath() {
            try {
                // Create temporary properties file
                File tempPropFile = File.createTempFile("test_suggest_", ".properties");
                tempPropFile.deleteOnExit();
                FileUtil.writeBytes(tempPropFile.getAbsolutePath(), "test.property=value".getBytes());
    
                SuggestCreator.Options options = new SuggestCreator.Options();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            testFile.deleteOnExit();
            // Ensure the test file is initially empty
            try (java.io.FileWriter fw = new java.io.FileWriter(testFile)) {
                fw.write("");
            }
    
            // Create a temporary project.properties file for SystemHelper
            File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                        logger.debug("Deleted temp file: path={}", propFile.getAbsolutePath());
                    }
                    systemProperties.reload(propFile.getAbsolutePath());
                    propFile.deleteOnExit();
                } catch (final Exception e) {
                    logger.warn("Failed to create system properties file.", e);
                }
            }
    
            int totalCount = 0;
            int count = 1;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

            super.setUp(testInfo);
            thumbnailJob = new GenerateThumbnailJob();
    
            // Create temporary directory
            tempDir = Files.createTempDirectory("test").toFile();
            tempDir.deleteOnExit();
    
            // Setup test components
            testProcessHelper = new TestProcessHelper();
            ComponentUtil.register(testProcessHelper, "processHelper");
    
            testSystemHelper = new TestSystemHelper();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19K bytes
    - Click Count (0)
Back to Top