parent
b8ddafe220
commit
22b6f75444
|
@ -1,9 +1,9 @@
|
||||||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message
|
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.message
|
||||||
|
|
||||||
import app.aaps.core.utils.toHex
|
import app.aaps.core.utils.toHex
|
||||||
|
import com.google.common.truth.Truth.assertThat
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.packet.PayloadJoiner
|
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.packet.PayloadJoiner
|
||||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.packet.PayloadSplitter
|
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.packet.PayloadSplitter
|
||||||
import org.junit.jupiter.api.Assertions
|
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import java.util.Random
|
import java.util.Random
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class PayloadSplitJoinTest {
|
||||||
joiner.accumulate(p.toByteArray())
|
joiner.accumulate(p.toByteArray())
|
||||||
}
|
}
|
||||||
val got = joiner.finalize()
|
val got = joiner.finalize()
|
||||||
Assertions.assertEquals(got.toHex(), payload.toHex())
|
assertThat(got.toHex()).isEqualTo(payload.toHex())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue