[rules-users] Mocking Guvnor

Michael Anstis michael.anstis at gmail.com
Fri Aug 8 08:07:33 EDT 2014


I assume you have a service encapsulating your use of Drools?

Why not mock this service to use an implementation that returns what you
need?


On 8 August 2014 03:13, san_hegde <santhosh.hegde at hp.com> wrote:

>  Hi ,
>
>
>
> We have requirement where in during functional testing we do not want to
> connect to Guvnor rather want to mock it.
>
>
>
> For example mocking could be like this.
>
>
>
>                 We send Fact object as input during calling
> knowledgeSession.execute() method and in rule we update the result in that
> fact object itself. So here can we mock the output fact object, so that
> during functional testing we no need to connect to Guvnor rather mocked
> result fact object is returned.
>
>
>
>
>
> Thank you
>
> Santhosh Hegde A
>
> ------------------------------
> View this message in context: Mocking Guvnor
> <http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601.html>
> Sent from the Drools: User forum mailing list archive
> <http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html> at
> Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140808/7994e6b7/attachment-0001.html 


More information about the rules-users mailing list