@Test public void executePaymentOperationTest() throws WirecardPaymenException { Payment payment = defaultWirecardPaymentCommand.execute(this.payment, wirecardAuthentication); assertEquals("The capture did not execute properly", this.payment, payment); }
@Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) throws WirecardPaymenException { LOG.info(SENDING_REQUEST_LOG_MSG); return getPaymentCommandService().sendRequest(payment, getRequestUrl(wirecardAuthenticationModel), wirecardAuthenticationModel); }
DefaultWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) throws WirecardPaymenException { LOG.info(SENDING_REQUEST_LOG_MSG); return getPaymentCommandService().sendRequest(payment, getRequestUrl(wirecardAuthenticationModel), wirecardAuthenticationModel); } }
DefaultWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) throws WirecardPaymenException { LOG.info(SENDING_REQUEST_LOG_MSG); return getPaymentCommandService().sendRequest(payment, getRequestUrl(wirecardAuthenticationModel), wirecardAuthenticationModel); }  }
DefaultWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) throws WirecardPaymenException { LOG.info(SENDING_REQUEST_LOG_MSG); return getPaymentCommandService().sendRequest(payment, getRequestUrl(wirecardAuthenticationModel), wirecardAuthenticationModel); }  @Override Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel); @Required void setRequestUrl(String requestUrl); @Required void setPaymentCommandService(PaymentCommandService paymentCommandService); @Required void setWirecardPaymentConfigurationService(WirecardPaymentConfigurationService wirecardPaymentConfigurationService); }
DefaultWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) throws WirecardPaymenException { LOG.info(SENDING_REQUEST_LOG_MSG); return getPaymentCommandService().sendRequest(payment, getRequestUrl(wirecardAuthenticationModel), wirecardAuthenticationModel); }  @Override Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel); @Required void setRequestUrl(String requestUrl); @Required void setPaymentCommandService(PaymentCommandService paymentCommandService); @Required void setWirecardPaymentConfigurationService(WirecardPaymentConfigurationService wirecardPaymentConfigurationService);  }