From 45a8b3bc8c1dae155c9afb4da311fcf0ce074ac4 Mon Sep 17 00:00:00 2001 From: Paulo Pinho Date: Tue, 20 Aug 2024 19:20:00 -0300 Subject: [PATCH] f --- .../com/ning/billing/recurly/TestRecurlyClient.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java b/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java index de8fb7d2..ce9493ee 100644 --- a/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java +++ b/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java @@ -2126,21 +2126,17 @@ public void testLineItemInvoiceRefund() throws Exception { // adjustmentRefund.setQuantity(1); adjustmentRefund.setPercentage(100); lineItems.add(adjustmentRefund); - adjustmentRefund2.setPercentage(100); - lineItems.add(adjustmentRefund2); - adjustmentRefund3.setPercentage(100); - lineItems.add(adjustmentRefund3); final InvoiceRefund refundOptions = new InvoiceRefund(); refundOptions.setRefundMethod(RefundMethod.transaction_first); refundOptions.setLineItems(lineItems); final Invoice refundInvoice = recurlyClient.refundInvoice(invoice.getId(), refundOptions); - Assert.assertEquals(refundInvoice.getTotalInCents(), new Integer(-250)); - Assert.assertEquals(refundInvoice.getSubtotalInCents(), new Integer(-250)); + Assert.assertEquals(refundInvoice.getTotalInCents(), new Integer(-100)); + Assert.assertEquals(refundInvoice.getSubtotalInCents(), new Integer(-100)); Assert.assertEquals(refundInvoice.getTransactions().get(0).getAction(), "refund"); - Assert.assertEquals(refundInvoice.getLineItems().size(), 3); + Assert.assertEquals(refundInvoice.getLineItems().size(), 1); final Adjustment lineItem = refundInvoice.getLineItems().get(0); Assert.assertEquals(lineItem.getQuantity(), new Integer(1)); } finally {