diff --git a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt index 84cf60c31e..ee3565db55 100644 --- a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt +++ b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt @@ -214,7 +214,7 @@ class DateExtensionsTest { // System.out.println("CurrentDATE: $currentDate") // System.out.println("Overdue text: ${date.toOverdueOrScheduledUiText(resourceManager, currentDate)}") val label = date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) - println("FERDY: $label") + System.out.println("FERDY: $label") // assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) == "In 30 days") } @@ -222,10 +222,10 @@ class DateExtensionsTest { fun `Should return 'In x days', when the current date is -x days from the scheduled date and less than 90 days`() { val currentDate = currentCalendar().time val date: Date? = currentCalendar().apply { - add(Calendar.DAY_OF_MONTH, 15) + add(Calendar.DAY_OF_MONTH, 16) }.time - whenever(resourceManager.getPlural(R.plurals.schedule_days, 15, 15)) doReturn "In 15 days" - assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate) == "In 15 days") + whenever(resourceManager.getPlural(R.plurals.schedule_days, 16, 16)) doReturn "In 16 days" + assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate) == "In 16 days") } @Test