Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("CUT-AT 10");

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


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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("CUT-AT 0");

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

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

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

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

    @Test
    public void test() {
  StartPrint command = new StartPrint(1.1, 2, 3, 4.4, 5);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! 1.1 2 3 4.4 5");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 SETBOLD 10");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 SETBOLD 0");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PAGE-WIDTH 0");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PAGE-WIDTH 10");

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

    @Test
    public void testDefault() {
  InverseLine command = new InverseLine(new Position(1, 2), new Position(3, 4));

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("INVERSE-LINE 1 2 3 4 1");

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

    @Test
    public void test() {
  SetFormFeed command = new SetFormFeed(1, 2);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U");
  output.printLn("SETFF 1 2");
  output.printLn("PRINT");

  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.