Skip to content

Commit

Permalink
Fix test to work with CardSource.stored being optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-peirse committed Jul 21, 2020
1 parent 9451270 commit c13d5dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test/java/com/checkout/TestHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static PaymentRequest<CardSource> createCardPayoutRequest() {
public static PaymentRequest<CardSource> createCardPaymentRequest(Long amount) {
CardSource cardSource = new CardSource(TestCardSource.VISA.getNumber(), TestCardSource.VISA.getExpiryMonth(), TestCardSource.VISA.getExpiryYear());
cardSource.setCvv(TestCardSource.VISA.getCvv());
cardSource.setStored(false);

CustomerRequest customer = new CustomerRequest();
customer.setEmail(generateRandomEmail());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void can_request_non_3ds_card_payment() throws Exception {
Assert.assertTrue(paymentResponse.getPayment().canCapture());
Assert.assertTrue(paymentResponse.getPayment().canVoid());
Assert.assertNotNull(paymentResponse.getPayment().getSource());
Assert.assertFalse(paymentRequest.getSource().isStored());
Assert.assertFalse(paymentRequest.getSource().getStored());
}

@Test
Expand Down

0 comments on commit c13d5dd

Please sign in to comment.