How to let the matcher to match the second invocation on mock?
- by Alex Luya
I have an interface like this
public interface EventBus{
public void fireEvent(GwtEvent<?> event);
}
and test code(testng method) looks like this:
@Test
public void testFireEvent(){
EventBus mock=mock(EventBus.class);
//when both Event1 and Event2 are subclasses of GwtEvent<?>
…