[rules-users] JUnit Test, Mockito, AgendaEventListener Problem.
droolster
quant.coder at gmail.com
Mon Aug 12 09:12:43 EDT 2013
Eclipse stops complaing when I cast:
AgendaEventListener ael = mock(AgendaEventListener.class);
ksession.addEventListener((org.drools.event.rule.AgendaEventListener)
ael);
But compilation does fail:
org.drools.event.AgendaEventListener$$EnhancerByMockitoWithCGLIB$$55528e36
cannot be cast to org.drools.event.rule.AgendaEventListener
--
View this message in context: http://drools.46999.n3.nabble.com/JUnit-Test-Mockito-AgendaEventListener-Problem-tp4025470p4025478.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list