deliveredtechnologies/rulebook

How to write Unit Tests for a RuleBean?

sahebray85 opened this issue · 1 comments

I have created a Rule using Rule Bean, i want to write a unit test for it.
How do I test it?

@Clayton7510 ?

If you are just talking about a single class, you can test it like it's any other POJO. If you want to test the entire RuleBook that contains RuleBeans, there are example tests, here: https://github.com/deliveredtechnologies/rulebook/tree/develop/rulebook-spring/src/test/java/com/deliveredtechnologies/rulebook/spring