[rules-users] Unit testing a Single rule from a large set of DRL and DSL files.
Wolfgang Laun
wolfgang.laun at gmail.com
Tue Apr 22 01:20:44 EDT 2014
If you do that, you won't be unit-testing the rule as it
operates in cahoots with all other rules :-)
You could put that rule on a DRL file of its own and compile,
create the KB and run the session.
There should be a way to manipulate a Knowledge Package,
handle rules one by one. But that's not a "stable" API and
I wouldn't recommend that either.
-W
On 21/04/2014, alanvarghese <AVarghese at verisk.com> wrote:
> OK Agreed. I can definitely work with that.
> Thanks Again.
>
> But my main problem is that the LHS for all the rules in my dslr files
> fires
> as soon as I execute.
> kieSession.insert(output);
>
> I want only the LHS for the rule that I am unit testing to fire.
>
> Is there any way to do that?
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Unit-testing-a-Single-rule-from-a-large-set-of-DRL-and-DSL-files-tp4029305p4029312.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list