parent
4ae21a1c85
commit
9facdf5c6c
1 changed files with 4 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
||||||
package info.nightscout.plugins.sync.nsclientV3.extensions
|
package info.nightscout.plugins.sync.nsclientV3.extensions
|
||||||
|
|
||||||
import app.aaps.shared.tests.TestBaseWithProfile
|
import app.aaps.shared.tests.TestBaseWithProfile
|
||||||
|
import com.google.common.truth.Truth.assertThat
|
||||||
import info.nightscout.database.entities.GlucoseValue
|
import info.nightscout.database.entities.GlucoseValue
|
||||||
import info.nightscout.database.entities.embedments.InterfaceIDs
|
import info.nightscout.database.entities.embedments.InterfaceIDs
|
||||||
import info.nightscout.sdk.mapper.convertToRemoteAndBack
|
import info.nightscout.sdk.mapper.convertToRemoteAndBack
|
||||||
import org.junit.jupiter.api.Assertions
|
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
|
||||||
internal class GlucoseValueExtensionKtTest : TestBaseWithProfile() {
|
internal class GlucoseValueExtensionKtTest : TestBaseWithProfile() {
|
||||||
|
@ -25,7 +25,7 @@ internal class GlucoseValueExtensionKtTest : TestBaseWithProfile() {
|
||||||
)
|
)
|
||||||
|
|
||||||
val glucoseValue2 = glucoseValue.toNSSvgV3().convertToRemoteAndBack()?.toTransactionGlucoseValue()?.toGlucoseValue()
|
val glucoseValue2 = glucoseValue.toNSSvgV3().convertToRemoteAndBack()?.toTransactionGlucoseValue()?.toGlucoseValue()
|
||||||
Assertions.assertTrue(glucoseValue.contentEqualsTo(glucoseValue2!!))
|
assertThat(glucoseValue.contentEqualsTo(glucoseValue2!!)).isTrue()
|
||||||
Assertions.assertTrue(glucoseValue.interfaceIdsEqualsTo(glucoseValue2))
|
assertThat(glucoseValue.interfaceIdsEqualsTo(glucoseValue2)).isTrue()
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue