- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getRuleId (0.11 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java
List<Rule> rules = ruleManager.getRules(); assertEquals(4, rules.size()); assertEquals("rule1", rules.get(0).getRuleId()); assertEquals("rule2", rules.get(1).getRuleId()); assertEquals("rule3", rules.get(2).getRuleId()); assertEquals("rule4", rules.get(3).getRuleId()); } /** * Test adding duplicate rules */ public void test_addRule_duplicates() {Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 23.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java
testRule.crawlerContainer = container; } /** * Test getRuleId and setRuleId */ public void test_ruleId_getterSetter() { // Initial state assertNull(testRule.getRuleId()); // Set rule ID testRule.setRuleId("testRule1"); assertEquals("testRule1", testRule.getRuleId()); // Change rule ID testRule.setRuleId("changedRule");Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 21.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java
assertSame(sharedProcessor, rule3.getResponseProcessor()); // Different rule IDs assertEquals("rule1", rule1.getRuleId()); assertEquals("rule2", rule2.getRuleId()); assertEquals("rule3", rule3.getRuleId()); // Different match results ResponseData responseData = new ResponseData(); assertTrue(rule1.match(responseData));
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 22.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/AbstractRule.java
public void register(final int index) { final RuleManager ruleManager = crawlerContainer.getComponent("ruleManager"); ruleManager.addRule(index, this); } @Override public String getRuleId() { return ruleId; } /** * Sets the rule ID for this rule. * * @param ruleId the rule ID to set */ public void setRuleId(final String ruleId) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 2.8K bytes - Viewed (0)