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. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users