Re: [rules-users] Drools 6 Junit Random Failures

2014-04-30 Thread richardhands
Okay, after much investigation, it turns out the tests were A) using .execute, rather than insert and fireallrules type behaviour, so i refactored that to improve them a bit (gave me more control). after that, and using the debug tools suggested it lead me to the root cause of the problem. someon

Re: [rules-users] Drools 6 Junit Random Failures

2014-04-29 Thread Stephen Masters
Looks close enough to what I tend to do. It could be worth firing off something like the following to double-check that your knowledge base and working memory are as expected prior to each test. /** * Iterates through the facts currently in working memory, and logs their details.

[rules-users] Drools 6 Junit Random Failures

2014-04-29 Thread richardhands
I've written a base class to do the heavy lifting of creating all the Kie resources etc and to give me a stateless session back that my unit tests can all use. Each test calls the method in this base class to set up stuff, and then adds facts and globals and does a fireall. however, i get random