[rules-users] Isn't it possible to mock a global with e.g. Mockito or EasyMock

Edson Tirelli ed.tirelli at gmail.com
Mon Feb 7 08:41:20 EST 2011


   I was going to say I use Mockito all the time for my rules tests and it
works fine...

   Edson

2011/2/7 dhermanns <d.hermanns at lvm.de>

>
> Stupid one,
>
> i found the reason myself. The import was wrong. It has to be:
>
> import de.lvm.verteilung.monitoring.VorverteilungServicesMonitoringMBean;
>
> So the ClassCastException was absolutely right
>
> cu,
> Dirk
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Isn-t-it-possible-to-mock-a-global-with-e-g-Mockito-or-EasyMock-tp2442072p2442141.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110207/7f12a765/attachment.html 


More information about the rules-users mailing list