Skip to content

Commit f8ad342

Browse files
authored
chore: [ANDROAPP-7463] Change database creation date type on main presenter test [skip size] (#4600)
* chore: [ANDROAPP-7463] update databaseCreationDate type * chore: [ANDROAPP-7463] fix test * chore: [ANDROAPP-7463] add dependency verification metadata
1 parent 811f9d6 commit f8ad342

File tree

2 files changed

+430
-2
lines changed

2 files changed

+430
-2
lines changed

app/src/test/java/org/dhis2/usescases/main/MainPresenterTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import org.dhis2.mobile.commons.domain.invoke
3232
import org.dhis2.usescases.login.SyncIsPerformedInteractor
3333
import org.dhis2.usescases.main.domain.LogoutUser
3434
import org.dhis2.usescases.settings.DeleteUserData
35+
import org.hisp.dhis.android.core.arch.helpers.DateUtils
3536
import org.hisp.dhis.android.core.category.CategoryCombo
3637
import org.hisp.dhis.android.core.category.CategoryOptionCombo
3738
import org.hisp.dhis.android.core.configuration.internal.DatabaseAccount
@@ -205,7 +206,7 @@ class MainPresenterTest {
205206
.serverUrl("https://www.random.com/")
206207
.encrypted(false)
207208
.databaseName("none")
208-
.databaseCreationDate("16/2/2012")
209+
.databaseCreationDate(DateUtils.SIMPLE_DATE_FORMAT.parse("2012-2-16"))
209210
.build()
210211
val secondRandomUserAccount =
211212
DatabaseAccount
@@ -214,7 +215,7 @@ class MainPresenterTest {
214215
.serverUrl("https://www.random.com/")
215216
.encrypted(false)
216217
.databaseName("none")
217-
.databaseCreationDate("16/2/2012")
218+
.databaseCreationDate(DateUtils.SIMPLE_DATE_FORMAT.parse("2012-2-16"))
218219
.build()
219220

220221
val randomFile = File("random")

0 commit comments

Comments
 (0)