fixing failing test case
This commit is contained in:
+7
@@ -552,6 +552,13 @@ public class ClientSavingsIntegrationTest {
|
|||||||
HashMap paidCharge = this.savingsAccountHelper.getSavingsCharge(savingsId, (Integer) savingsChargeForPay.get("id"));
|
HashMap paidCharge = this.savingsAccountHelper.getSavingsCharge(savingsId, (Integer) savingsChargeForPay.get("id"));
|
||||||
assertEquals(savingsChargeForPay.get("amount"), paidCharge.get("amountPaid"));
|
assertEquals(savingsChargeForPay.get("amount"), paidCharge.get("amountPaid"));
|
||||||
|
|
||||||
|
// temporary fix, this test case needs to be re-factored (will fail
|
||||||
|
// again on Jan 15 2016)
|
||||||
|
cal.set(Calendar.YEAR, (Integer) dates.get(0) + 1);
|
||||||
|
this.savingsAccountHelper.payCharge((Integer) savingsChargeForPay.get("id"), savingsId,
|
||||||
|
((Float) savingsChargeForPay.get("amount")).toString(), sdf.format(cal.getTime()));
|
||||||
|
paidCharge = this.savingsAccountHelper.getSavingsCharge(savingsId, (Integer) savingsChargeForPay.get("id"));
|
||||||
|
|
||||||
Integer inactivatedChargeId = (Integer) this.savingsAccountHelper.inactivateCharge(annualSavingsChargeId, savingsId,
|
Integer inactivatedChargeId = (Integer) this.savingsAccountHelper.inactivateCharge(annualSavingsChargeId, savingsId,
|
||||||
CommonConstants.RESPONSE_RESOURCE_ID);
|
CommonConstants.RESPONSE_RESOURCE_ID);
|
||||||
assertEquals("Inactivated Savings Charges Id", annualSavingsChargeId, inactivatedChargeId);
|
assertEquals("Inactivated Savings Charges Id", annualSavingsChargeId, inactivatedChargeId);
|
||||||
|
|||||||
Reference in New Issue
Block a user