package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.command;

// TODO capture silence alerts command
public class SilenceAlertsCommandTest {
}
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.command;

import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.junit.Test;

import static org.junit.Assert.assertArrayEquals;

public class SilenceAlertsCommandTest {
    @Test
    public void testSilenceLowReservoirAlert() throws DecoderException {
        byte[] encoded = new SilenceAlertsCommand(37879811, (short) 1, false, new SilenceAlertsCommand.SilenceAlertCommandParameters(false, false, false, false, true, false, false, false)) //
                .getEncoded();

        assertArrayEquals(Hex.decodeHex("0242000304071105494E532E1081CE"), encoded);
    }

    // TODO capture more silence alerts commands
}
Add test for SilenceAlertsCommand