java - Mockito verify method call with generic collection argument -
i have method:
public void mymethod(set<item> items);
when try call:
mockito.verify(instance.mymethod(mockito.anyset());
i compilation error:
the method verify(t) in type mockito not applicable arguments (void)
i same error when define argument captor. how can fix this?
i figured out. has this:
mockito.verify(instance).mymethod(mockito.anyset());
the parentheses wrongly placed.
Comments
Post a Comment