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);
}
}