Package it.stefanobertini.zebra.cpcl.utility

Examples of it.stefanobertini.zebra.cpcl.utility.OnLowBattery


public class OnLowBatteryTest {

    @Test(expected = ValidationException.class)
    public void test1() {
  OnLowBattery command = new OnLowBattery();

  command.getCommandByteArray();
    }
View Full Code Here


  command.getCommandByteArray();
    }

    @Test
    public void test2() {
  OnLowBattery command = new OnLowBattery(1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("OLB ALARM 1");
  output.printLn("PRINT");
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test3() {
  OnLowBattery command = new OnLowBattery("MESSAGE");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("OLB ALERT \"MESSAGE\"");
  output.printLn("PRINT");
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test4() {
  OnLowBattery command = new OnLowBattery("MESSAGE", 1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("OLB ALERT \"MESSAGE\" ALARM 1");
  output.printLn("PRINT");
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test5() {
  OnLowBattery command = new OnLowBattery(null, 1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("OLB ALARM 1");
  output.printLn("PRINT");
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void testFake() {
  OnLowBattery command = new OnLowBattery();
  command.setAlertMessage("");
  command.setAlarmDuration(0);
  command.getAlertMessage();
  command.getAlarmDuration();
  command.toString();
    }
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.cpcl.utility.OnLowBattery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.