Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getRules (0.07 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            Rule matchedRule = ruleManager.getRule(responseData);
    
            assertNull(matchedRule);
        }
    
        /**
         * Test getRule with null ResponseData
         */
        public void test_getRule_nullResponseData() {
            TestRule rule = new TestRule("rule1", true);
    
            ruleManager.addRule(rule);
    
            Rule matchedRule = ruleManager.getRule(null);
    
            assertNull(matchedRule);
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

                return rules.remove(rule);
            }
    
            @Override
            public boolean hasRule(Rule rule) {
                return rules.contains(rule);
            }
    
            public List<Rule> getRules() {
                return new ArrayList<>(rules);
            }
    
            public void clearRules() {
                rules.clear();
            }
        }
    
        /**
         * Test ResponseProcessor implementation
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            assertEquals(readings, elevateWord.getReadings());
            assertEquals(fields, elevateWord.getFields());
            assertEquals(tags, elevateWord.getTags());
            assertNotNull(elevateWord.getRoles());
            assertTrue(elevateWord.getRoles().isEmpty());
        }
    
        @Test
        public void testConstructorWithNullTagsAndRoles() {
            // Test constructor with both null tags and roles
            String word = "test word";
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertNotNull(item.getFields());
            assertEquals(0, item.getFields().length);
            assertNotNull(item.getTags());
            assertEquals(0, item.getTags().length);
            assertNotNull(item.getRoles());
            assertEquals(1, item.getRoles().length); // Default role is added
            assertNotNull(item.getLanguages());
            assertEquals(0, item.getLanguages().length);
            assertNotNull(item.getKinds());
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            secondLine.put("score", (item.getQueryFreq() + item.getDocFreq()) * item.getUserBoost());
            secondLine.put("tags", item.getTags());
            secondLine.put("roles", item.getRoles());
            secondLine.put("kinds", Arrays.toString(item.getKinds()));
            secondLine.put("@timestamp", item.getTimestamp());
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            }
        }
    
        /**
         * Test implementation of RuleManager for testing
         */
        private static class TestRuleManager implements RuleManager {
            @Override
            public Rule getRule(ResponseData responseData) {
                return null;
            }
    
            @Override
            public void addRule(Rule rule) {
            }
    
            @Override
            public void addRule(int index, Rule rule) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top