diff --git a/commons/src/androidTest/java/org/dhis2/commons/date/DateUtilsTest.java b/commons/src/androidTest/java/org/dhis2/commons/date/DateUtilsTest.java index 1bcbb3c5dd..482e330e2b 100644 --- a/commons/src/androidTest/java/org/dhis2/commons/date/DateUtilsTest.java +++ b/commons/src/androidTest/java/org/dhis2/commons/date/DateUtilsTest.java @@ -1,6 +1,7 @@ package org.dhis2.commons.date; -import org.junit.jupiter.api.Assertions; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import org.junit.Test; import java.util.Calendar; import java.util.Date; @@ -14,13 +15,13 @@ public void returnsEventOverDueDateCorrectly() { Calendar calendar = Calendar.getInstance(); //should return false for current date calendar.setTime(new Date()); - Assertions.assertFalse(DateUtils.getInstance().isEventDueDateOverdue(calendar.getTime())); + assertFalse(DateUtils.getInstance().isEventDueDateOverdue(calendar.getTime())); //false for future date calendar.add(Calendar.DAY_OF_MONTH, 10); - Assertions.assertFalse(DateUtils.getInstance().isEventDueDateOverdue(calendar.getTime())); + assertFalse(DateUtils.getInstance().isEventDueDateOverdue(calendar.getTime())); //true for past dates calendar.add(Calendar.DAY_OF_MONTH, -30); - Assertions.assertTrue(DateUtils.getInstance().isEventDueDateOverdue(calendar.getTime())); + assertTrue(DateUtils.getInstance().isEventDueDateOverdue(calendar.getTime())); } }