@Test public void testPaymentOperation() { WirecardAuthenticationModel wirecardAuthenticationModel = new WirecardAuthenticationModel(); Payment response = noOperationWirecardPaymentCommand.execute(payment, wirecardAuthenticationModel); assertEquals("Payment does not match", payment, response); }
@Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) { if (LOG.isDebugEnabled()) { LOG.debug("Not executing any command and will return passed payment (Transacition-ID: {})", payment.getTransactionId()); } return payment; }
NoOperationWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) { if (LOG.isDebugEnabled()) { LOG.debug("Not executing any command and will return passed payment (Transacition-ID: {})", payment.getTransactionId()); } return payment; } }
NoOperationWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) { if (LOG.isDebugEnabled()) { LOG.debug("Not executing any command and will return passed payment (Transacition-ID: {})", payment.getTransactionId()); } return payment; }  }
NoOperationWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) { if (LOG.isDebugEnabled()) { LOG.debug("Not executing any command and will return passed payment (Transacition-ID: {})", payment.getTransactionId()); } return payment; }  @Override Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel); }
NoOperationWirecardPaymentCommand implements PaymentCommand { @Override public Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel) { if (LOG.isDebugEnabled()) { LOG.debug("Not executing any command and will return passed payment (Transacition-ID: {})", payment.getTransactionId()); } return payment; }  @Override Payment execute(Payment payment, WirecardAuthenticationModel wirecardAuthenticationModel);  }