ImportKeystorePresenter extends BasePresenter<ImportKeystoreContract.View> implements ImportKeystoreContract.Presenter { @Override public void parseQRCode(String QRCode) { if (!TextUtils.isEmpty(QRCode)) { getView().showQRCode(QRCode); } }  @Override void init(); @Override void checkPaste(); @Override void parseQRCode(String QRCode); @Override void importKeystore(String keystore, String name, String password); @Override boolean isExists(String walletName); @Override void loadDBWalletNumber();  }
@Test public void testParseQRCode(){ String QRCode = "lat1x8z5nfgjnaryutayxxkzzkrfzenpwl7k6r2a8z"; presenter.parseQRCode(QRCode); Mockito.verify(view).showQRCode(Mockito.anyString()); }