parent
fe14ef27b2
commit
3ea240f4db
|
@ -2,7 +2,7 @@ package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.session
|
|||
|
||||
import app.aaps.core.utils.toHex
|
||||
import app.aaps.shared.tests.AAPSLoggerTest
|
||||
import org.junit.jupiter.api.Assertions
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.spongycastle.util.encoders.Hex
|
||||
|
||||
|
@ -14,6 +14,6 @@ class EapMessageTest {
|
|||
Hex.decode("01bd0038170100000205000000c55c78e8d3b9b9e935860a7259f6c001050000c2cd1248451103bd77a6c7ef88c441ba7e0200006cff5d18")
|
||||
val eapMsg = EapMessage.parse(aapsLogger, payload)
|
||||
val back = eapMsg.toByteArray()
|
||||
Assertions.assertEquals(back.toHex(), payload.toHex())
|
||||
assertThat(payload.toHex()).isEqualTo(back.toHex())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue