From 35e3ea6f48a9248734552b58190ed6fd07e724ff Mon Sep 17 00:00:00 2001 From: Ferdy Rodriguez Date: Wed, 29 May 2024 13:15:14 +0200 Subject: [PATCH] testing log in test --- .../test/java/org/dhis2/bindings/DateExtensionsTest.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt index 70ebb67281..f753d78e12 100644 --- a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt +++ b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt @@ -211,12 +211,10 @@ class DateExtensionsTest { val date: Date? = currentCalendar().apply { add(Calendar.MONTH, 2) }.time - // whenever(resourceManager.getPlural(R.plurals.schedule_days, 60, 60)) doReturn "In 60 days" - `when`(resourceManager.getPlural(R.plurals.schedule_days, 6, 60)).thenReturn("In 60 days") - // System.out.println("CurrentDATE: $currentDate") - // System.out.println("Overdue text: ${date.toOverdueOrScheduledUiText(resourceManager, currentDate)}") - val label = date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) - System.out.println("FERDY label: $label") + whenever(resourceManager.getPlural(R.plurals.schedule_days, 60, 60)) doReturn "In 60 days" + + System.out.println("CurrentDATE: $currentDate") + System.out.println("Overdue text: ${date.toOverdueOrScheduledUiText(resourceManager, currentDate, true)}") assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) == "In 60 days") }