Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write Unit Tests for a RuleBean? #198

Open
sahebray85 opened this issue Sep 4, 2020 · 1 comment
Open

How to write Unit Tests for a RuleBean? #198

sahebray85 opened this issue Sep 4, 2020 · 1 comment

Comments

@sahebray85
Copy link

sahebray85 commented Sep 4, 2020

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

@Clayton7510 ?

@Clayton7510
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants