Package it.stefanobertini.zebra.cpcl.utility

Examples of it.stefanobertini.zebra.cpcl.utility.DefineFile


    }

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


    }

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

    }

    @Test
    public void test3() {

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

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

    }

    @Test(expected = ValidationException.class)
    public void test4() {

  DefineFile command = new DefineFile(null, getData(), DefineFileTerminator.print);

  command.getCommandByteArray();
    }
View Full Code Here

    }

    @Test(expected = ValidationException.class)
    public void test5() {

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

  command.getCommandByteArray();
    }
View Full Code Here

    }

    @Test(expected = ValidationException.class)
    public void test6() {

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

  command.getCommandByteArray();
    }
View Full Code Here

    }

    @Test(expected = ValidationException.class)
    public void test7() {

  DefineFile command = new DefineFile("TEST.TXT", null);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! DF TEST.TXT");
  output.printLn("END");
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void testFake() {
  DefineFile command = new DefineFile();
  command = new DefineFile("");
  command.setFileName("");
  command.setData(null);
  command.setFileTerminator(DefineFileTerminator.end);
  command.getFileName();
  command.getData();
  command.getFileTerminator();
  command.toString();
    }
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.cpcl.utility.DefineFile

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.