Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
#175: fix CreditCardRequestFactoryTest: remove deprecated getAmountAu…
Browse files Browse the repository at this point in the history
…thorized
  • Loading branch information
andrii-kovalenko-ct committed Oct 19, 2017
1 parent ef4a4f3 commit 16e4547
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ public void createFullAuthorizationRequestFromValidPayment() throws Exception {

@Test
public void createFullCaptureRequestFromValidPayment() throws Exception {

Payment payment = payments.dummyPaymentOneChargePending20Euro();
Order order = payments.dummyOrderMapToPayoneRequest();
PaymentWithCartLike paymentWithCartLike = new PaymentWithCartLike(payment, order);
Expand All @@ -212,8 +211,8 @@ public void createFullCaptureRequestFromValidPayment() throws Exception {
softly.assertThat(result.getIntegratorVersion()).isEqualTo(payoneConfig.getIntegratorVersion());

//monetary
softly.assertThat(result.getAmount()).isEqualTo(extractMinorPart().queryFrom(payment.getAmountAuthorized()).intValue());
softly.assertThat(result.getCurrency()).isEqualTo(payment.getAmountAuthorized().getCurrency().getCurrencyCode());
softly.assertThat(result.getAmount()).isEqualTo(extractMinorPart().queryFrom(payment.getAmountPlanned()).intValue());
softly.assertThat(result.getCurrency()).isEqualTo(payment.getAmountPlanned().getCurrency().getCurrencyCode());

softly.assertThat(result.getTxid()).isEqualTo(payment.getInterfaceId());
softly.assertThat(result.getSequencenumber()).isEqualTo(Integer.valueOf(payment.getTransactions().get(0).getInteractionId()));
Expand Down

0 comments on commit 16e4547

Please sign in to comment.