Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7a91a4

Browse files
committed
working on validation case
1 parent a258952 commit d7a91a4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,11 @@
8282
<version>1.1.7</version>
8383
<scope>compile</scope>
8484
</dependency>
85+
<dependency>
86+
<groupId>joda-time</groupId>
87+
<artifactId>joda-time</artifactId>
88+
<version>1.6.2</version>
89+
<scope>compile</scope>
90+
</dependency>
8591
</dependencies>
8692
</project>

src/main/java/com/snda/infrastructure/drools/tutorial/validation/ValidationHelper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ public static void warning(RuleContext kcontext, Object... context) {
1212
valiationReport.addMessage(reportFactory.createMessage(Message.Type.WARNING, kcontext.getRule().getName(), context));
1313
}
1414

15+
16+
1517
}

src/test/java/com/snda/infrastructure/drools/tutorial/validation/ValidationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.drools.command.CommandFactory;
1616
import org.drools.conf.SequentialOption;
1717
import org.drools.runtime.StatelessKnowledgeSession;
18+
import org.joda.time.DateMidnight;
1819
import org.junit.Before;
1920
import org.junit.Test;
2021

@@ -102,6 +103,7 @@ public void accountBalanceAtLeast() {
102103

103104
@Test
104105
public void studentAccountCustomerAgeLessThan() {
106+
DateMidnight now = new DateMidnight();
105107

106108
}
107109

0 commit comments

Comments
 (0)