Skip to content

Commit

Permalink
More on coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cschen1205 committed May 6, 2017
1 parent 519065c commit f99048f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<developers>
<developer>
<email>xs0040@gmail.com</email>
<email>cschen1205@gmail.com</email>
<id>cschen1205</id>
<name>Xianshun Chen</name>
<name>Caishun Chen</name>
<url>https://github.com/cschen1205</url>
</developer>
</developers>
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/cschen/works/package-info.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.cschen.works.ess.engine;

import com.cschen.works.ess.enums.ConditionType;
import org.testng.annotations.Test;

import java.util.Scanner;
Expand Down Expand Up @@ -88,6 +89,16 @@ public void testForwardChain()
System.out.println();
}

@Test
public void testAddFacts(){
RuleInferenceEngine engine = new KieRuleInferenceEngine();
engine.addFact("table.length.cm", ConditionType.Greater, "15");
engine.addFact("table.width.cm", ConditionType.Less, "15");
engine.addFact("table.height.cm", ConditionType.Equals, "115");
engine.addFact("door.length.cm", ConditionType.GreaterEquals, "105");
engine.addFact("door.width.cm", ConditionType.LessEquals, "85");
}

private RuleInferenceEngine getInferenceEngine()
{
RuleInferenceEngine rie=new KieRuleInferenceEngine();
Expand Down

0 comments on commit f99048f

Please sign in to comment.