Mark, let me know if you need some help since this is one of the task in my (almost eternal) TODO list. You can take a look at KnowledgeAgentEventListenerTest.java. Using KnowledgeAgentEventListener, you can be notified when the rule base is recreated and there is no need to wait for x seconds anymore.
The KnowlegeAgent tests have been fragile for a while, related to "wait"
code and file issues, particularly on windows. Something has changed
recently and now they aren't working on the linux hudson server either.
So I'm now in the process of refactoring the tests to make them more
robust, and they will hopefully run faster too, as I'll use call backs
when something has finished instead of waiting for X seconds in the hope
that something has finished.
Mark
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev