Package it.stefanobertini.zebra.cpcl.linemode

Examples of it.stefanobertini.zebra.cpcl.linemode.SetFormFeed


public class SetFormFeedTest {

    @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");
View Full Code Here


  assertCommand(output, command);
    }

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U");
  output.printLn("SETFF 0 0");
  output.printLn("PRINT");
View Full Code Here

  assertCommand(output, command);
    }

    @Test(expected = ValidationException.class)
    public void testValidation1() {
  SetFormFeed command = new SetFormFeed(-1, 0);

  command.getCommandByteArray();
    }
View Full Code Here

  command.getCommandByteArray();
    }

    @Test(expected = ValidationException.class)
    public void testValidation2() {
  SetFormFeed command = new SetFormFeed(0, -1);

  command.getCommandByteArray();
    }
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.cpcl.linemode.SetFormFeed

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.