Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


    @Test
    public void test() {
  OutOfPaper command = new OutOfPaper(OutOfPaperMode.wait, 5);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("OUT-OF-PAPER WAIT 5");

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


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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("VERSION");
  output.printLn("PRINT");

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

    @Test
    public void test1() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_14, "1234567890123", "1234567890");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 1 1234567890123|1234567890");

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

    @Test
    public void test2() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_14_Stacked, "1234567890123", "");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 3 1234567890123");

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

    @Test
    public void test3() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_Expanded, "1234567890123", "");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 6 1234567890123");

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

    @Test
    public void test4() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.UCC_128_Composite_A_B, "12345678901234567890",
          "1234567890");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 11 12345678901234567890|1234567890");

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

    @Test
    public void test5() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_14, "1011234567890", "");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 1 1011234567890");

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

public class WaitTest {

    public void testDefault() {
  Wait command = new Wait();

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

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

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

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

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PACE");

  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.