Update Test Dependency version (#4405)

* Update Version and Unit Test

* fix failing tests

* update robolectric
This commit is contained in:
Madhur Gupta 2021-05-10 12:52:56 +05:30 committed by GitHub
parent 117a7805ad
commit 2f4c30416d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 122 additions and 82 deletions

View file

@ -1,7 +1,6 @@
package fr.free.nrw.commons.utils
import org.hamcrest.core.IsEqual.equalTo
import org.junit.Assert.assertThat
import org.junit.Assert
import org.junit.Test
class CommonsDateUtilTest {
@ -12,9 +11,9 @@ class CommonsDateUtilTest {
.getIso8601DateFormatTimestamp()
val parsedDate = iso8601DateFormatTimestamp
.parse("2020-04-07T14:21:57Z")
assertThat(
Assert.assertEquals(
"2020-04-07T14:21:57Z",
equalTo(iso8601DateFormatTimestamp.format(parsedDate))
iso8601DateFormatTimestamp.format(parsedDate)
)
}
}