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

Add @DirtiesRuleSession annotation for test methods and classes #3

Open
dabdine opened this issue Oct 4, 2012 · 0 comments
Open

Add @DirtiesRuleSession annotation for test methods and classes #3

dabdine opened this issue Oct 4, 2012 · 0 comments

Comments

@dabdine
Copy link
Owner

dabdine commented Oct 4, 2012

The annotation should perform a reset() on the rule session, and only apply to StatefuleRuleSession annotated test classes. More specifically, the annotation should invoke the RulesJUnit4ClassRunner to invoke reset() on the StatefulRuleSession whenever a method is encountered that is annotated with @DirtiesRuleSession, or for every method if the test class itself is annotated with @DirtiesRuleSession.

This doesn't apply to test classes that use StatelessRuleSession and should cause an error condition if @DirtiesRuleSession is used in any situation while a StatelessRuleSession exists in the test class.

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

No branches or pull requests

1 participant