@Test public void testPaymentOperation() throws WirecardPaymenException { this.payment = new Payment(); creditCardAuthorizationParesPaymentProcessor.processPayment(this.payment, data); Assert.assertEquals("response is not equals",this.threeD, payment.getThreeD()); }
@Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { String pares = data.getPares(); ThreeD threeD = objectFactory.createThreeD(); threeD.getContent().add(objectFactory.createThreeDPares(pares)); payment.setThreeD(threeD); }
CreditCardAuthorizationParesPaymentProcessor implements PaymentProcessor { @Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { String pares = data.getPares(); ThreeD threeD = objectFactory.createThreeD(); threeD.getContent().add(objectFactory.createThreeDPares(pares)); payment.setThreeD(threeD); } }
CreditCardAuthorizationParesPaymentProcessor implements PaymentProcessor { @Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { String pares = data.getPares(); ThreeD threeD = objectFactory.createThreeD(); threeD.getContent().add(objectFactory.createThreeDPares(pares)); payment.setThreeD(threeD); }  }
CreditCardAuthorizationParesPaymentProcessor implements PaymentProcessor { @Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { String pares = data.getPares(); ThreeD threeD = objectFactory.createThreeD(); threeD.getContent().add(objectFactory.createThreeDPares(pares)); payment.setThreeD(threeD); }  @Override void processPayment(Payment payment, PaymentOperationData data); ObjectFactory getObjectFactory(); void setObjectFactory(ObjectFactory objectFactory); }
CreditCardAuthorizationParesPaymentProcessor implements PaymentProcessor { @Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { String pares = data.getPares(); ThreeD threeD = objectFactory.createThreeD(); threeD.getContent().add(objectFactory.createThreeDPares(pares)); payment.setThreeD(threeD); }  @Override void processPayment(Payment payment, PaymentOperationData data); ObjectFactory getObjectFactory(); void setObjectFactory(ObjectFactory objectFactory);  }