Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for tempdir (0.04 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

        private ThumbnailManager thumbnailManager;
        private File tempDir;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
    
            // Create temp directory for testing
            tempDir = Files.createTempDirectory("thumbnail_test").toFile();
            tempDir.deleteOnExit();
    
            // Create a test thumbnail manager with minimal initialization
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

        private ThumbnailGenerator thumbnailGenerator;
        private File tempOutputFile;
        private Path tempDir;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            tempDir = Files.createTempDirectory("thumbnail-test");
            tempOutputFile = Files.createTempFile(tempDir, "thumbnail", ".png").toFile();
    
            // Create a test implementation of ThumbnailGenerator
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            // Clean up temp directory
            if (tempDir != null && Files.exists(tempDir)) {
                Files.walk(tempDir)
                        .sorted((a, b) -> b.compareTo(a)) // Delete files before directories
                        .forEach(path -> {
                            try {
                                Files.delete(path);
                            } catch (IOException e) {
                                // Ignore cleanup errors
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/SingletonContextTest.java

            assertEquals("Singleton context is already initialized", e.getMessage());
        }
    
        @Test
        void testInitLoadsJcifsPropertiesFile(@TempDir Path tempDir) throws IOException, CIFSException {
            // Test that jcifs.properties file is loaded
            Path jcifsPropertiesPath = tempDir.resolve("jcifs.properties");
            Files.writeString(jcifsPropertiesPath, "jcifs.smb.client.nativeOs=FileOS");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/LmhostsTest.java

        private Lmhosts lmhosts;
        private CIFSContext mockContext;
        private Configuration mockConfig;
    
        @TempDir
        Path tempDir;
    
        @BeforeEach
        void setUp() {
            lmhosts = new Lmhosts();
            mockContext = mock(CIFSContext.class);
            mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

            testServletContext = new TestServletContext();
            testServletContext.tempDir = tempDir;
            ComponentUtil.register(testServletContext, ServletContext.class.getCanonicalName());
        }
    
        @Override
        public void tearDown() throws Exception {
            if (tempDir != null && tempDir.exists()) {
                deleteDirectory(tempDir);
            }
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

        private MockPopularWordHelper mockPopularWordHelper;
        private File tempDir;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
    
            // Create temp directory for testing first
            tempDir = File.createTempFile("suggestjob_test", "");
            tempDir.delete();
            tempDir.mkdirs();
            tempDir.deleteOnExit();
    
            // Create mock objects
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

            // Create temporary directory for test JAR files
            tempDir = Files.createTempDirectory("datastore-test").toFile();
            tempDir.deleteOnExit();
        }
    
        @Override
        public void tearDown() throws Exception {
            // Clean up temporary files
            if (tempDir != null && tempDir.exists()) {
                deleteDirectory(tempDir);
            }
            super.tearDown();
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            // Test with existing directory
            File testDir = new File(tempDir, "test_delete_dir");
            assertTrue(testDir.mkdir());
            assertTrue(testDir.exists());
    
            execJob.testDeleteTempDir(testDir);
            assertFalse(testDir.exists());
    
            // Test with non-existent directory
            File nonExistentDir = new File(tempDir, "non_existent");
            execJob.testDeleteTempDir(nonExistentDir);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            generator.setCommandDestroyTimeout(timeout);
            assertTrue(true);
        }
    
        public void test_setBaseDir() throws Exception {
            final File tempDir = new File(System.getProperty("java.io.tmpdir"));
            generator.setBaseDir(tempDir);
            assertTrue(true);
        }
    
        public void test_setCommandList() throws Exception {
            final List<String> commands = Collections.singletonList("test_command");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
Back to top