From e56020842b7d15bee2e687c8479fb53598cffbb7 Mon Sep 17 00:00:00 2001 From: Pablo Pajuelo Cabezas Date: Wed, 11 Dec 2024 15:30:59 +0100 Subject: [PATCH] add log to test --- app/src/test/java/org/dhis2/utils/DateUtilsTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/test/java/org/dhis2/utils/DateUtilsTest.java b/app/src/test/java/org/dhis2/utils/DateUtilsTest.java index 1b5c8ea413..e2adb7ca3b 100644 --- a/app/src/test/java/org/dhis2/utils/DateUtilsTest.java +++ b/app/src/test/java/org/dhis2/utils/DateUtilsTest.java @@ -6,6 +6,8 @@ import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; +import android.util.Log; + import org.dhis2.R; import org.dhis2.bindings.StringExtensionsKt; import org.dhis2.commons.date.DateUtils; @@ -80,6 +82,8 @@ public void expiryPeriodAndDaysInRange() throws ParseException { assertEquals("2018-07-26", DateUtils.oldUiDateFormat().format(minDateWeeklyThursday)); assertEquals("2018-07-28", DateUtils.oldUiDateFormat().format(minDateWeeklySaturday)); assertEquals("2018-07-29", DateUtils.oldUiDateFormat().format(minDateWeeklySunday)); + Log.d("CHECK", "minDateBiWeekly: " + DateUtils.oldUiDateFormat().format(minDateBiWeekly)); + Log.d("CHECK", "expected: 2018-07-16"); assertEquals("2018-07-16", DateUtils.oldUiDateFormat().format(minDateBiWeekly)); assertEquals("2018-06-18", DateUtils.oldUiDateFormat().format(minDateBiWeekly2)); assertEquals("2018-07-01", DateUtils.oldUiDateFormat().format(minDateMonthly));