Skip to content

Commit

Permalink
Revert changes made to LoanReschedulingWithinCenterTest (FINERACT-702)
Browse files Browse the repository at this point in the history
@awasum changed this in the SpotBugs related work, but this seems both
wrong, and, for me, makes this test now fail instead of pass (even
though for him it passed on the original PR...).

Probably related to https://issues.apache.org/jira/browse/FINERACT-820;
note that my current local time as I'm testing this is Sunday, and it
WORKS with; I'm now confused when FINERACT-820 affects us and when not.
Or perhaps this has nothing at all to do with that.
  • Loading branch information
vorburger committed Jan 12, 2020
1 parent af0dd7e commit 89b996c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ public void testCenterReschedulingLoansWithInterestRecalculationEnabled() {

// VERIFY THE INTEREST
Float interestDue = (Float) ((HashMap) loanRepaymnetSchedule.get(2)).get("interestDue");
assertEquals(String.valueOf(interestDue), "42.38");

assertEquals("90.82", String.valueOf(interestDue));
}

private void associateClientsToGroup(Integer groupId, Integer clientId) {
Expand All @@ -176,7 +175,7 @@ private Integer createCalendarMeeting(Integer centerId) {
final String startDate = dateFormat.format(today.getTime());
final String frequency = "2"; // 2:Weekly
final String interval = "2"; // Every one week
final Integer repeatsOnDay = today.get(Calendar.DAY_OF_WEEK);
final Integer repeatsOnDay = today.get(Calendar.DAY_OF_WEEK) - 1;

Integer calendarId = CalendarHelper.createMeetingForGroup(this.requestSpec, this.responseSpec, centerId, startDate, frequency,
interval, repeatsOnDay.toString());
Expand Down Expand Up @@ -280,8 +279,7 @@ public void testCenterReschedulingMultiTrancheLoansWithInterestRecalculationEnab

// VERIFY THE INTEREST
Float interestDue = (Float) ((HashMap) loanRepaymnetSchedule.get(2)).get("interestDue");
assertEquals(String.valueOf(interestDue), "19.16");

assertEquals("41.05", String.valueOf(interestDue));
}

private Integer createLoanProductWithInterestRecalculation(final String repaymentStrategy,
Expand Down

0 comments on commit 89b996c

Please sign in to comment.