Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


  SimpleDateFormat format = new SimpleDateFormat("MM-dd-yyyy");
  Date time = new Date();

  SetDate command = new SetDate(time);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("SET-DATE " + format.format(time));
  output.printLn("PRINT");

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


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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 PW 10");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 PW 0");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U");
  output.printLn("IN-DOTS");
  output.printLn("PRINT");

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

    @Test
    public void test() {
  Units command = new Units(UnitsType.centimeters);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U");
  output.printLn("IN-CENTIMETERS");
  output.printLn("PRINT");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("BEEP 0");
  output.printLn("PRINT");

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

    @Test
    public void test() {
  Encoding command = new Encoding(EncodingType.ascii);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("ENCODING ASCII");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("BEEP 10");
  output.printLn("PRINT");

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

    @Test
    public void testWithString() {
  Encoding command = new Encoding("ASCII");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("ENCODING ASCII");

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

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("REWIND-ON");

  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.