Package it.stefanobertini.zebra.cpcl.linemode

Source Code of it.stefanobertini.zebra.cpcl.linemode.JustificationTest

package it.stefanobertini.zebra.cpcl.linemode;

import static it.stefanobertini.zebra.CommandAssert.assertCommand;
import it.stefanobertini.zebra.CommandOutputBuilder;
import it.stefanobertini.zebra.cpcl.linemode.Justification;
import it.stefanobertini.zebra.enums.JustificationType;

import org.junit.Test;

public class JustificationTest {

    @Test
    public void testLeft() {
  Justification command = new Justification(JustificationType.left);

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

  assertCommand(output, command);
    }

    @Test
    public void testCenter() {
  Justification command = new Justification(JustificationType.center);

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

  assertCommand(output, command);
    }

    @Test
    public void testRight() {
  Justification command = new Justification(JustificationType.right);

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

  assertCommand(output, command);
    }

}
TOP

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

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.