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

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Using conditionals inside template literals -