diff --git a/app/src/test/java/org/dhis2/data/dhislogic/DhisPeriodUtilsTest.kt b/app/src/test/java/org/dhis2/data/dhislogic/DhisPeriodUtilsTest.kt index 1dfe0838511..1116d9637e5 100644 --- a/app/src/test/java/org/dhis2/data/dhislogic/DhisPeriodUtilsTest.kt +++ b/app/src/test/java/org/dhis2/data/dhislogic/DhisPeriodUtilsTest.kt @@ -47,7 +47,7 @@ class DhisPeriodUtilsTest { .build() Assert.assertEquals( - "11/1/2019", + "11/01/2019", periodUtils.getPeriodUIString(null, testDate, Locale.ENGLISH), ) } @@ -66,7 +66,7 @@ class DhisPeriodUtilsTest { .build() Assert.assertEquals( - "11/1/2019", + "11/01/2019", periodUtils.getPeriodUIString( PeriodType.Daily, testDate, diff --git a/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/domain/ConfigureEventReportDateTest.kt b/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/domain/ConfigureEventReportDateTest.kt index c354f8702fd..4b521c9ce64 100644 --- a/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/domain/ConfigureEventReportDateTest.kt +++ b/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/domain/ConfigureEventReportDateTest.kt @@ -45,7 +45,7 @@ class ConfigureEventReportDateTest { ) // And has a concrete date - val expectedDate = "14/2/2022" + val expectedDate = "14/02/2022" val event: Event = mock { on { eventDate() } doReturn DateUtils.uiDateFormat().parse(expectedDate) @@ -97,7 +97,7 @@ class ConfigureEventReportDateTest { periodUtils = periodUtils, ) - val tomorrow = "16/2/2022" + val tomorrow = "16/02/2022" whenever( periodUtils.getPeriodUIString(any(), any(), any()), @@ -122,8 +122,8 @@ class ConfigureEventReportDateTest { scheduleInterval = 6, ) - val lastEventDate = "13/2/2022" - val nextEventDate = "19/2/2022" + val lastEventDate = "13/02/2022" + val nextEventDate = "19/02/2022" whenever( repository.getStageLastDate(ENROLLMENT_ID), ) doReturn DateUtils.uiDateFormat().parse(lastEventDate) @@ -147,8 +147,8 @@ class ConfigureEventReportDateTest { scheduleInterval = 6, ) - val lastEventDate = "13/2/2022" - val nextEventDate = "19/2/2022" + val lastEventDate = "13/02/2022" + val nextEventDate = "19/02/2022" whenever( repository.getStageLastDate(ENROLLMENT_ID), ) doReturn null @@ -180,8 +180,8 @@ class ConfigureEventReportDateTest { enrollmentId = ENROLLMENT_ID, ) - val lastEventDate = "13/2/2022" - val nextEventDate = "15/2/2022" + val lastEventDate = "13/02/2022" + val nextEventDate = "15/02/2022" whenever( repository.getStageLastDate(ENROLLMENT_ID), ) doReturn null diff --git a/app/src/test/java/org/dhis2/usescases/searchTrackEntity/SearchTEIViewModelTest.kt b/app/src/test/java/org/dhis2/usescases/searchTrackEntity/SearchTEIViewModelTest.kt index 143ca66547c..73e510c82be 100644 --- a/app/src/test/java/org/dhis2/usescases/searchTrackEntity/SearchTEIViewModelTest.kt +++ b/app/src/test/java/org/dhis2/usescases/searchTrackEntity/SearchTEIViewModelTest.kt @@ -638,8 +638,8 @@ class SearchTEIViewModelTest { val expectedMap = mapOf( "uid1" to "Friendly OrgUnit Name", "uid2" to "Male", - "uid3" to "21/2/2024", - "uid4" to "21/2/2024 01:00", + "uid3" to "21/02/2024", + "uid4" to "21/02/2024 - 01:00", "uid5" to "Boolean: false", "uid6" to "Yes Only", "uid7" to "Text value",