From 6a3e88c0d600d7e218313c5e60160407af8af788 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Sun, 24 Nov 2024 15:47:59 +0100 Subject: [PATCH] Update StatusComparisonTest --- app/src/test/java/app/pachli/StatusComparisonTest.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/test/java/app/pachli/StatusComparisonTest.kt b/app/src/test/java/app/pachli/StatusComparisonTest.kt index 8e759d976..5f885cd1b 100644 --- a/app/src/test/java/app/pachli/StatusComparisonTest.kt +++ b/app/src/test/java/app/pachli/StatusComparisonTest.kt @@ -5,11 +5,13 @@ import app.pachli.core.database.model.TranslationState import app.pachli.core.network.json.BooleanIfNull import app.pachli.core.network.json.DefaultIfNull import app.pachli.core.network.json.Guarded +import app.pachli.core.network.json.InstantJsonAdapter import app.pachli.core.network.json.LenientRfc3339DateJsonAdapter import app.pachli.core.network.model.Status import app.pachli.viewdata.StatusViewData import com.squareup.moshi.Moshi import com.squareup.moshi.adapter +import java.time.Instant import java.util.Date import org.junit.Assert.assertEquals import org.junit.Assert.assertNotEquals @@ -20,6 +22,7 @@ import org.junit.runner.RunWith class StatusComparisonTest { private val moshi = Moshi.Builder() .add(Date::class.java, LenientRfc3339DateJsonAdapter()) + .add(Instant::class.java, InstantJsonAdapter()) .add(Guarded.Factory()) .add(DefaultIfNull.Factory()) .add(BooleanIfNull.Factory())