89101112131415161718
import org.junit.Test; public class SetSpacingTest { public void testDefault() { SetSpacing command = new SetSpacing(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("SETSP 0"); assertCommand(output, command);
1819202122232425262728
assertCommand(output, command); } @Test public void test() { SetSpacing command = new SetSpacing(1); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("SETSP 1"); assertCommand(output, command);
282930313233343536
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { SetSpacing command = new SetSpacing(-1); command.getCommandByteArray(); }