From 9facdf5c6c695a0b765dc552ece032306e547899 Mon Sep 17 00:00:00 2001 From: Ryan Haining Date: Sat, 23 Sep 2023 20:47:31 -0700 Subject: [PATCH] Rewrites GlucoseValueExtensionKtTest with matchers Issue #2745 --- .../nsclientV3/extensions/GlucoseValueExtensionKtTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/GlucoseValueExtensionKtTest.kt b/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/GlucoseValueExtensionKtTest.kt index 14e9e8fd6c..c611a0734d 100644 --- a/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/GlucoseValueExtensionKtTest.kt +++ b/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/GlucoseValueExtensionKtTest.kt @@ -1,10 +1,10 @@ package info.nightscout.plugins.sync.nsclientV3.extensions import app.aaps.shared.tests.TestBaseWithProfile +import com.google.common.truth.Truth.assertThat import info.nightscout.database.entities.GlucoseValue import info.nightscout.database.entities.embedments.InterfaceIDs import info.nightscout.sdk.mapper.convertToRemoteAndBack -import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test internal class GlucoseValueExtensionKtTest : TestBaseWithProfile() { @@ -25,7 +25,7 @@ internal class GlucoseValueExtensionKtTest : TestBaseWithProfile() { ) val glucoseValue2 = glucoseValue.toNSSvgV3().convertToRemoteAndBack()?.toTransactionGlucoseValue()?.toGlucoseValue() - Assertions.assertTrue(glucoseValue.contentEqualsTo(glucoseValue2!!)) - Assertions.assertTrue(glucoseValue.interfaceIdsEqualsTo(glucoseValue2)) + assertThat(glucoseValue.contentEqualsTo(glucoseValue2!!)).isTrue() + assertThat(glucoseValue.interfaceIdsEqualsTo(glucoseValue2)).isTrue() } -} \ No newline at end of file +}