Assert.assertEquals(plan.getUnitAmountInCents().getUnitAmountUSD(), new Integer(1000)); Assert.assertEquals(plan.getUnitAmountInCents().getUnitAmountEUR(), new Integer(800)); Assert.assertEquals(plan.getSetupFeeInCents().getUnitAmountUSD(), new Integer(6000)); Assert.assertEquals(plan.getSetupFeeInCents().getUnitAmountEUR(), new Integer(4500)); Assert.assertNull(plan.getDescription()); Assert.assertNull(plan.getSuccessLink());
Assert.assertEquals(plan.getUnitAmountInCents().getUnitAmountUSD(), new Integer(1000)); Assert.assertEquals(plan.getUnitAmountInCents().getUnitAmountEUR(), new Integer(800)); Assert.assertEquals(plan.getSetupFeeInCents().getUnitAmountUSD(), new Integer(6000)); Assert.assertEquals(plan.getSetupFeeInCents().getUnitAmountEUR(), new Integer(4500)); Assert.assertNull(plan.getDescription()); Assert.assertNull(plan.getSuccessLink());
Assert.assertEquals(plan.getUpdatedAt(), new DateTime("2011-04-19T07:00:00Z")); Assert.assertNull(plan.getUnitAmountInCents().getUnitAmountUSD()); Assert.assertNull(plan.getSetupFeeInCents().getUnitAmountUSD()); Assert.assertNull(plan.getDescription()); Assert.assertNull(plan.getSuccessLink());
Assert.assertEquals(plan.getUpdatedAt(), new DateTime("2011-04-19T07:00:00Z")); Assert.assertNull(plan.getUnitAmountInCents().getUnitAmountUSD()); Assert.assertNull(plan.getSetupFeeInCents().getUnitAmountUSD()); Assert.assertNull(plan.getDescription()); Assert.assertNull(plan.getSuccessLink());
final Integer total = subscriptionData.getUnitAmountInCents() + planData.getSetupFeeInCents().getUnitAmountUSD(); Assert.assertEquals(invoices.get(1).getTotalInCents(), total, "Amount in cents is not the same"); } finally {