Rewrites SetBolusPacketTest with matchers

Issue #2745
This commit is contained in:
Ryan Haining 2023-10-08 18:12:06 -07:00
parent efcc9baa66
commit 8f34ca5d89

View file

@ -1,9 +1,9 @@
package info.nightscout.pump.medtrum.comm.packets
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.pump.medtrum.MedtrumTestBase
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class SetBolusPacketTest : MedtrumTestBase() {
@ -28,6 +28,6 @@ class SetBolusPacketTest : MedtrumTestBase() {
// Expected values
val expected = byteArrayOf(19, 1, 47, 0, 0)
Assertions.assertEquals(expected.contentToString(), result.contentToString())
assertThat(result).asList().containsExactlyElementsIn(expected.toList()).inOrder()
}
}