You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Eyji <ey...@gmail.com> on 2006/11/20 15:32:55 UTC
Drools Testcases
I've been writing Testcases for some Drools rules in an application.
Referring to SM:s own testcases, I discovered that there doesn't seem to be
a possibility in the org.apache.servicemix.tck.TestSupport Class to send in
a File reference, like an xml file to validate the rules against, only a
String. Am I missing something, or should I just raise a Jira?
Another question that comes to mind when it comes to the TestSupport class,
is that the only method used by the SM testcases is where a message (Hello
World??) is iterated a number of times against a rule. What is the purpose
of such a testcase? Performance, maybe?
Regards,
/EYji
--
View this message in context: http://www.nabble.com/Drools-Testcases-tf2669364s12049.html#a7443477
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Drools Testcases
Posted by Guillaume Nodet <gn...@gmail.com>.
On 11/20/06, Eyji <ey...@gmail.com> wrote:
>
> I've been writing Testcases for some Drools rules in an application.
> Referring to SM:s own testcases, I discovered that there doesn't seem to be
> a possibility in the org.apache.servicemix.tck.TestSupport Class to send in
> a File reference, like an xml file to validate the rules against, only a
> String. Am I missing something, or should I just raise a Jira?
You can send a message exchange with an source input stream
pointing on the file you want to send.
> Another question that comes to mind when it comes to the TestSupport class,
> is that the only method used by the SM testcases is where a message (Hello
> World??) is iterated a number of times against a rule. What is the purpose
> of such a testcase? Performance, maybe?
You can override the method that generate the message or
give the xml string to the sendMessages method.
>
> Regards,
> /EYji
> --
> View this message in context: http://www.nabble.com/Drools-Testcases-tf2669364s12049.html#a7443477
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet