Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for deleteOnExit (0.06 sec)

  1. 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;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
    
            // 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));
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. 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();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
    
            // 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));
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. 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();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/unit/TestSystemProperties.java

            loadTestProperties();
        }
    
        private static File createTempFile() {
            try {
                File tempFile = File.createTempFile("test-system", ".properties");
                tempFile.deleteOnExit();
                return tempFile;
            } catch (IOException e) {
                logger.warn("Failed to create temp file, using null", e);
                return null;
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                public Integer getLdapMaxUsernameLengthAsInteger() {
                    return Integer.valueOf(-1);
                }
            };
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                        logger.debug("Deleted a temp file: {}", 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;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

            super.setUp();
            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();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            ComponentUtil.register(fessConfig, "fessConfig");
    
            File propFile = File.createTempFile("test", ".properties");
            FileUtil.writeBytes(propFile.getAbsolutePath(), new byte[0]);
            propFile.deleteOnExit();
            systemProperties = new DynamicProperties(propFile);
            ComponentUtil.register(systemProperties, "systemProperties");
    
            pathMappingHelper = new PathMappingHelper() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
Back to top