Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for expandPath (0.63 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

        }
    
        public void test_expandPath() {
            // Test expandPath method
            generator = new TestThumbnailGenerator();
    
            // Test without mappings
            assertEquals("path/to/file", generator.expandPath("path/to/file"));
            assertNull(generator.expandPath(null));
    
            // Test with exact match mappings (expandPath only replaces exact matches)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            assertEquals("test/path", emptyGenerator.expandPath("test/path"));
            assertNull(emptyGenerator.expandPath(null));
    
            // Test with file path mappings
            emptyGenerator.filePathMap.put("${path}/test", "/usr/bin/test");
            assertEquals("/usr/bin/test", emptyGenerator.expandPath("${path}/test"));
            assertEquals("other/path", emptyGenerator.expandPath("other/path"));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

        /**
         * Expands a file path using the file path mapping.
         * @param value The original path value.
         * @return The expanded path or the original value if no mapping exists.
         */
        protected String expandPath(final String value) {
            if (value != null && filePathMap.containsKey(value)) {
                return filePathMap.get(value);
            }
            return value;
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            assertTrue("Long commands should be settable", true);
        }
    
        // Test path expansion logic
        public void test_path_expansion() throws Exception {
            // Test the expandPath functionality indirectly through variable replacement
            final String testCommand = "convert ${url} -resize 100x100 ${outputFile}";
            final String tempPath = "/tmp/source.pdf";
    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