[rules-users] JUnit Test, Mockito, AgendaEventListener Problem.

droolster quant.coder at gmail.com
Mon Aug 12 06:22:53 EDT 2013


Hello,

Please can the community help me.

I am setting up a JUnit test case. I am using Mockito to mock an
AgendaEventListener as follows:

*		AgendaEventListener ael = mock(AgendaEventListener.class);
		ksession.addEventListener(ael);*

However, Eclipse keeps complaining that 

*The method addEventListener(WorkingMemoryEventListener) in the type
WorkingMemoryEventManager is not applicable for the arguments
(AgendaEventListener).*

According to the 5.5.0.Final API, it should infer that I am using:

*addEventListener(AgendaEventListener listener) *

but it doesn't. Can anyone help please. I am stuck on this.

Regards.




--
View this message in context: http://drools.46999.n3.nabble.com/JUnit-Test-Mockito-AgendaEventListener-Problem-tp4025470.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list