910111213141516171819
public class BeepTest { @Test public void testDefault() { Beep command = new Beep(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("BEEP 0"); output.printLn("PRINT");
2122232425262728293031
assertCommand(output, command); } @Test public void test() { Beep command = new Beep(10); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("BEEP 10"); output.printLn("PRINT");
333435363738394041
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { Beep command = new Beep(-1); command.getCommandByteArray(); }
40414243444546474849
command.getCommandByteArray(); } @Test public void testFake() { Beep command = new Beep(); command.setLength(0); command.getLength(); command.toString(); }