Package it.stefanobertini.zebra.cpcl.labelmode

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

package it.stefanobertini.zebra.cpcl.labelmode;

import static it.stefanobertini.zebra.CommandAssert.assertCommand;
import it.stefanobertini.zebra.CommandOutputBuilder;
import it.stefanobertini.zebra.cpcl.labelmode.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("LEFT");

  assertCommand(output, command);
    }

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

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

  assertCommand(output, command);
    }

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

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

  assertCommand(output, command);
    }
}
TOP

Related Classes of it.stefanobertini.zebra.cpcl.labelmode.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.