Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder.printLn()


    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


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

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

  assertCommand(output, command);
    }

}
View Full Code Here

    public void test1() {

  DefineFile command = new DefineFile("TEST.TXT", getData(), DefineFileTerminator.end);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! DF TEST.TXT");
  for (String text : getData()) {
      output.printLn(text);
  }
  output.printLn("END");
View Full Code Here

  SetFormFeed command = new SetFormFeed(1, 2);

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

  assertCommand(output, command);
    }

    @Test
View Full Code Here

  DefineFile command = new DefineFile("TEST.TXT", getData(), DefineFileTerminator.end);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! DF TEST.TXT");
  for (String text : getData()) {
      output.printLn(text);
  }
  output.printLn("END");

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! DF TEST.TXT");
  for (String text : getData()) {
      output.printLn(text);
  }
  output.printLn("END");

  assertCommand(output, command);
    }

    @Test
View Full Code Here

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

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

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

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

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

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

  SetFormFeed command = new SetFormFeed();

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

  assertCommand(output, command);
    }

    @Test(expected = ValidationException.class)
View Full Code Here

    public void test2() {

  DefineFile command = new DefineFile("TEST.TXT", getData(), DefineFileTerminator.print);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! DF TEST.TXT");
  for (String text : getData()) {
      output.printLn(text);
  }
  output.printLn("PRINT");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.