ImportPrivateKeyPresenter extends BasePresenter<ImportPrivateKeyContract.View> implements ImportPrivateKeyContract.Presenter { @Override public void parseQRCode(String QRCode) { getView().showQRCode(QRCode); }  @Override void init(); @Override void checkPaste(); @Override void parseQRCode(String QRCode); @Override void importPrivateKey(String privateKey, String name, String password, String repeatPassword); @Override boolean isExists(String walletName); @Override void loadDBWalletNumber();  }
@Test public void parseQRCode(){ String QRCode = "541a6474dfccc0d36d88ef9269fbede85c35b3ec08d9a327ce488349fcd52888"; presenter.parseQRCode(QRCode); Mockito.verify(view).showQRCode(Mockito.anyString()); }