swing - IllegalArgumentException:TypeMismatch when trying to mock JOptionPane -
why illegalargumentexception:typemismatch here?
@preparefortest({ joptionpane.class }) ... powermockito.mockstatic(joptionpane.class) powermockito.donothing().when(joptionpane.class, "showmessagedialog", component.class, object.class); thanks advice!
Comments
Post a Comment