Application Driven Testing of Drools with Fitnesse – part 1

Other Posts in this Series Application Driven Testing of Drools with Fitnesse - part 2 Overview Just as we can use JUnit as an integral part of Test Driven Development (TDD), we can also use Fitnesse as an integral part of Application Test Driven Development. What does Fitnesse give us Fitnesse provides a Wiki front end …

Application Driven Testing of Drools with Fitnesse – part 3

Overview In this post we will migrate our tests to Fitnesse using the Wili Pages Problem Domain So far we have created a simple rule and a JUnit test to test it.  But what if the client wants to see what we have?  They're not going to want to read JUnit tests written in Java.  They …

Application Driven Testing of Drools with Fitnesse – part 2

Other Posts in this Series Application Driven Testing of Drools with Fitnesse - part 1 Overview In this post we will create a JUnit Test Case that fires a simple rule. Step 1 First let's create the classes and files we will need for our rule example: Person.java - this will be a fact that is …

Drools – Working with Accumulate

This example follows on from Drools5.6 Basic Example This is a quick example that shows a very simple use of the accumulate statement. Problem Write a rule that accumulates and stores the number of iPhone and Android devices owned by students, so that further rules can analyse and act on that information. The Code pom.xml …

Drools5.6 Basic Example

Creating the Project Open Eclipse (Kepler) New -> Maven Project Simple Project Group Id: com.skills421.examples.drools Artifact Id: Drools5.6Example Finish pom.xml Rule Runner src/main/java com.skills421.examples.drools.controller.RuleRunner Person src/main/java com.skills421.examples.drools.model.Person Main src/main/java com.skills421.examples.drools.Main Rules src/main/resources test1.drl Output