Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for setFessConfig (0.1 sec)

  1. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            getMockRequest().setLocale(null);
            assertEquals("https://discuss.codelibs.org/c/FessEN/", systemHelper.getForumLink());
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                @Override
                public String getForumLink() {
                    return StringUtil.EMPTY;
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            ComponentUtil.setFessConfig(null);
        }
    
        public void test_pruneNode_removeNoScript() throws Exception {
            final String data = "<html><body><br/><script>foo</script><noscript>bar</noscript></body></html>";
            final Document document = getDocument(data);
    
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                public String getSystemProperty(final String key, final String defaultValue) {
                    return systemPropMap.getOrDefault(key, defaultValue);
                }
            };
            ComponentUtil.setFessConfig(fessConfig);
            SystemHelper systemHelper = new SystemHelper() {
                @Override
                public String getProductVersion() {
                    return "98.76";
                }
            };
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

            assertEquals("labels.facet_filetype_title", view3.getTitle());
            assertEquals(10, view3.getQueryMap().size());
        }
    
        public void test_getUrlLink() throws IOException {
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                public boolean isAppendQueryParameter() {
                    return false;
                }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/ComponentUtil.java

                // ignore
            }
            return false;
        }
    
        /**
         * For test purpose only.
         *
         * @param fessConfig fessConfig instance
         */
        public static void setFessConfig(final FessConfig fessConfig) {
            ComponentUtil.fessConfig = fessConfig;
            if (fessConfig == null) {
                systemHelper = null;
                FessProp.propMap.clear();
                componentMap.clear();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:35:51 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

            new WildcardQueryCommand().register();
        }
    
        private void setQueryType(final String queryType) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                @Override
                public String get(String propertyKey) {
                    return fessConfig.get(propertyKey);
                }
    
                @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top