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 {