Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


    @Test
    public void test() {
  Rewind command = new Rewind(OnOffMode.off);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("REWIND-OFF");

  assertCommand(output, command);
    }
View Full Code Here


    @Test
    public void testDefault() {
  PreTension command = new PreTension();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PRE-TENSION 0");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test() {
  PreTension command = new PreTension(1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PRE-TENSION 1");

  assertCommand(output, command);
    }
View Full Code Here

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

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

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void testDefault() {
  PreFeed command = new PreFeed();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PREFEED 0");

  assertCommand(output, command);
    }
View Full Code Here

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

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

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test() {
  PreFeed command = new PreFeed(1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PREFEED 1");

  assertCommand(output, command);
    }
View Full Code Here

    @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");

  assertCommand(output, command);
    }
View Full Code Here

    @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");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void testDefault() {
  OutOfPaper command = new OutOfPaper();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("OUT-OF-PAPER PURGE 2");

  assertCommand(output, command);
    }
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.CommandOutputBuilder

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.