Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


    @Test
    public void test() {
  Units command = new Units(UnitsType.centimeters);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("IN-CENTIMETERS");

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


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

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

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

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

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

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

    @Test
    public void test() {
  SetTopOfForm command = new SetTopOfForm(10);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U");
  output.printLn("SET-TOF 10");
  output.printLn("PRINT");

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

    @Test
    public void test5() {
  PaperJam command = new PaperJam(PaperJamMethod.presentation, 2, null);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("PAPER-JAM PRESENTATION 2");
  output.printLn("PRINT");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U");
  output.printLn("SET-TOF 0");
  output.printLn("PRINT");
  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test1() {
  Text command = new Text();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.print("");

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

    @Test
    public void test2() {
  Text command = new Text("WITH NEWLINE");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("WITH NEWLINE");

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

    @Test
    public void test3() {
  Text command = new Text("WITH NEWLINE", true);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("WITH NEWLINE");

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

    @Test
    public void test4() {
  Text command = new Text("WITHOUT NEWLINE", false);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.print("WITHOUT NEWLINE");

  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.