parent
124e27b449
commit
1d3c697caa
1 changed files with 3 additions and 4 deletions
|
@ -1,15 +1,14 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.command
|
||||
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.definition.AlertType
|
||||
import org.apache.commons.codec.DecoderException
|
||||
import org.apache.commons.codec.binary.Hex
|
||||
import org.junit.jupiter.api.Assertions
|
||||
import org.junit.jupiter.api.Test
|
||||
import java.util.EnumSet
|
||||
|
||||
class SilenceAlertsCommandTest {
|
||||
|
||||
@Test @Throws(DecoderException::class) fun testSilenceLowReservoirAlert() {
|
||||
@Test fun testSilenceLowReservoirAlert() {
|
||||
val encoded = SilenceAlertsCommand.Builder()
|
||||
.setUniqueId(37879811)
|
||||
.setSequenceNumber(1.toShort())
|
||||
|
@ -18,7 +17,7 @@ class SilenceAlertsCommandTest {
|
|||
.build()
|
||||
.encoded
|
||||
|
||||
Assertions.assertArrayEquals(Hex.decodeHex("0242000304071105494E532E1081CE"), encoded)
|
||||
assertThat(encoded).asList().containsExactlyElementsIn(Hex.decodeHex("0242000304071105494E532E1081CE").asList()).inOrder()
|
||||
}
|
||||
|
||||
// TODO capture more silence alerts commands
|
||||
|
|
Loading…
Reference in a new issue