Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


  data.add("1");
  data.add("2");
  data.add("3");
  Text command = new Text(data);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("1");
  output.printLn("2");
  output.printLn("3");

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


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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("LT CR-LF");
  output.printLn("PRINT");

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

    @Test
    public void test2() {

  SetLineTerminatorCharacter command = new SetLineTerminatorCharacter(LineTerminatorCharacter.carriageReturn);

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

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

  data.add("1");
  data.add("2");
  data.add("3");
  Text command = new Text(data, true);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("1");
  output.printLn("2");
  output.printLn("3");

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

    @Test
    public void test3() {
  SetLineTerminatorCharacter command = new SetLineTerminatorCharacter(LineTerminatorCharacter.lineFeed);

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

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

  data.add("1");
  data.add("2");
  data.add("3");
  Text command = new Text(data, false);

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

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

    @Test
    public void test4() {
  SetLineTerminatorCharacter command = new SetLineTerminatorCharacter(LineTerminatorCharacter.carriageReturnAndLineFeed);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("LT CR-LF");
  output.printLn("PRINT");

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

    @Test
    public void test5() {
  SetLineTerminatorCharacter command = new SetLineTerminatorCharacter(LineTerminatorCharacter.carriageReturnAndAnyThenLineFeed);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("LT CR-X-LF");
  output.printLn("PRINT");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("COUNT 10");

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

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

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

  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.