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));