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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -