SnapServiceManager extends BaseServiceManager { void setService(SnapApiService service) { this.service = service; } SnapServiceManager(SnapApiService service); void getTransactionOptions(final String snapToken, final TransactionOptionsCallback callback); void paymentUsingCreditCard(final String snapToken, CreditCardPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingVa(final String snapToken, BankTransferPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingBaseMethod(final String snap, BasePaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingMandiriClickPay(final String snapToken, NewMandiriClickPayPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingTelkomselCash(final String snapToken, TelkomselEcashPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingIndosatDompetku(final String snapToken, IndosatDompetkuPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingGci(final String authenticationToken, GCIPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingKlikBca(final String authenticationToken, KlikBCAPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingGoPay(String snapToken, GoPayPaymentRequest paymentRequest, final TransactionCallback callback); void paymentUsingDanamonOnline(String snapToken, DanamonOnlinePaymentRequest paymentRequest, final TransactionCallback callback); void deleteCard(String snapToken, String maskedCard, final DeleteCardCallback callback); void getBankBins(final BankBinsCallback callback); void getBanksPoint(String snapToken, String cardToken, final BanksPointCallback callback); void getTransactionStatus(String snapToken, final GetTransactionStatusCallback callback);  }
@Test public void paymentUsingBaseMethodFailure_whenServiceNull() { snapTransactionManager.setService(null); callbackImplement.paymentBaseMethod(snapToken, null); Mockito.verify(callbackCollaboratorMock).onError(); }
@Test public void paymentUsingMandiriClickPayFailure_whenServiceNull() { snapTransactionManager.setService(null); callbackImplement.paymentBaseMethod(snapToken, null); Mockito.verify(callbackCollaboratorMock).onError(); }
@Test public void paymentUsingTCashFailure_whenServiceNull() { snapTransactionManager.setService(null); callbackImplement.paymentUsingTCash(snapToken, null); Mockito.verify(callbackCollaboratorMock).onError(); }
@Test public void paymentUsingIndosatDompetkuFailure_whenServiceNull() { snapTransactionManager.setService(null); callbackImplement.paymentUsingIndosatDomputku(snapToken, null); Mockito.verify(callbackCollaboratorMock).onError(); }
@Test public void cardDeletionFailure_whenServiceNull() { snapTransactionManager.setService(null); callbackImplement.deleteSavedCard(snapToken, null); Mockito.verify(callbackCollaboratorMock).onError(); }
@Test public void getBankPointsFailure_whenServiceNull() { snapTransactionManager.setService(null); callbackImplement.getBankPoints(snapToken, SDKConfigTest.CARD_TOKEN); Mockito.verify(callbackCollaboratorMock).onError(); }