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(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users