Package it.stefanobertini.zebra.cpcl.labelmode

Examples of it.stefanobertini.zebra.cpcl.labelmode.Abort


    @Test
    public void test() {

  PrintJob<LabelModeCommandInterface> printJob = new PrintJob<LabelModeCommandInterface>();

  printJob.add(new Abort());
  printJob.add(new End());

  byte[] expected;

  expected = "ABORT\r\nEND\r\n".getBytes();
View Full Code Here


    @Test
    public void testChain() {

  PrintJob<LabelModeCommandInterface> printJob = new PrintJob<LabelModeCommandInterface>();

  printJob = printJob.add(new Abort()).add(new End());

  byte[] expected;

  expected = "ABORT\r\nEND\r\n".getBytes();
View Full Code Here

  driver.open();

  ServerSocketThread serverSocketThread = new ServerSocketThread(serverSocket);
  serverSocketThread.start();

  Abort command = new Abort();

  driver.executeNoWait(command);

  while (!serverSocketThread.isFinished()) {
      Thread.sleep(100);
  }

  received = serverSocketThread.getReceived();

  assertArrayEquals("Command Send", command.getCommandByteArray(), received);
    }
View Full Code Here

  driver.open();

  ServerSocketThread serverSocketThread = new ServerSocketThread(serverSocket);
  serverSocketThread.start();

  Abort command = new Abort();

  driver.executeNoWait(command);

  while (!serverSocketThread.isFinished()) {
      Thread.sleep(100);
View Full Code Here

  driver.open();

  ServerSocketThread serverSocketThread = new ServerSocketThread(serverSocket, ("\"" + expectedAnswer + "\"").getBytes(), 500);
  serverSocketThread.start();

  Abort command = new Abort();

  answer = driver.executeAndWait(command, 1000);

  while (!serverSocketThread.isFinished()) {
      Thread.sleep(100);
View Full Code Here

  driver.open();

  ServerSocketThread serverSocketThread = new ServerSocketThread(serverSocket, expectedAnswer.getBytes(), 50);
  serverSocketThread.start();

  Abort command = new Abort();

  answer = driver.executeAndWait(command, 10);

  while (!serverSocketThread.isFinished()) {
      Thread.sleep(100);
View Full Code Here

  driver.open();

  ServerSocketThread serverSocketThread = new ServerSocketThread(serverSocket, expectedAnswer.getBytes(), 500);
  serverSocketThread.start();

  Abort command = new Abort();

  answer = driver.executeAndWait(command);

  while (!serverSocketThread.isFinished()) {
      Thread.sleep(100);
View Full Code Here

    @Test
    public void testExecute() throws Exception {

  PrintJob<LabelModeCommandInterface> printJob = new PrintJob<LabelModeCommandInterface>();

  printJob.add(new Abort());
  printJob.add(new End());

  byte[] expected;

  expected = "ABORT\r\nEND\r\n".getBytes();
View Full Code Here

public class AbortTest {

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

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

  assertCommand(output, command);
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void fakeTest() {
  Abort command = new Abort();

  command.toString();
    }
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.cpcl.labelmode.Abort

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.