Creating Test Classes for Rules

One of the fundamentals of writing rules is to test that they do what they're expected to. When rules are written and published, they are stored in the database. A framework for testing CER rules is provided and the factory classes for writing the tests can be generated from the rule set (the rule set will need to be extracted from the database onto the file system first) using the following command:

build creole.generate.test.classes

This command will generate one or more test classes into the following location: