Skip to content

Commit

Permalink
Update StatusComparisonTest
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton committed Nov 24, 2024
1 parent 11e553f commit 6a3e88c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/test/java/app/pachli/StatusComparisonTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())
Expand Down

0 comments on commit 6a3e88c

Please sign in to comment.