Chapter 7. Testing your Rules

We went through many samples in the first six chapters of the book, and didn't have to pay out 'real' money if we made a mistake. We could happily play with the examples, make mistakes, and learn from them. This changes when we start writing 'real' business rules. How much money would a company lose if a rule that you wrote gave double the intended discount to a customer? Or, what if your airline ticket pricing rule started giving away first class transatlantic flights for one cent?

Of course, mistakes happen. This chapter makes sure that these costly mistakes don't happen to you. If you're going through the trouble of writing business rules, you will want to make sure that they do what you intend them to, and keep ...

Get JBoss Drools Business Rules now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.