diff --git a/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/CarbsExtensionKtTest.kt b/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/CarbsExtensionKtTest.kt index f071299570..5414a13989 100644 --- a/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/CarbsExtensionKtTest.kt +++ b/plugins/sync/src/test/java/info/nightscout/plugins/sync/nsclientV3/extensions/CarbsExtensionKtTest.kt @@ -1,10 +1,10 @@ package info.nightscout.plugins.sync.nsclientV3.extensions +import com.google.common.truth.Truth.assertThat import info.nightscout.database.entities.Carbs import info.nightscout.database.entities.embedments.InterfaceIDs import info.nightscout.sdk.localmodel.treatment.NSCarbs import info.nightscout.sdk.mapper.convertToRemoteAndBack -import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test @Suppress("SpellCheckingInspection") @@ -27,8 +27,8 @@ internal class CarbsExtensionKtTest { ) var carbs2 = (carbs.toNSCarbs().convertToRemoteAndBack() as NSCarbs).toCarbs() - Assertions.assertTrue(carbs.contentEqualsTo(carbs2)) - Assertions.assertTrue(carbs.interfaceIdsEqualsTo(carbs2)) + assertThat(carbs.contentEqualsTo(carbs2)).isTrue() + assertThat(carbs.interfaceIdsEqualsTo(carbs2)).isTrue() carbs = Carbs( timestamp = 10000, @@ -45,7 +45,7 @@ internal class CarbsExtensionKtTest { ) carbs2 = (carbs.toNSCarbs().convertToRemoteAndBack() as NSCarbs).toCarbs() - Assertions.assertTrue(carbs.contentEqualsTo(carbs2)) - Assertions.assertTrue(carbs.interfaceIdsEqualsTo(carbs2)) + assertThat(carbs.contentEqualsTo(carbs2)).isTrue() + assertThat(carbs.interfaceIdsEqualsTo(carbs2)).isTrue() } -} \ No newline at end of file +}