910111213141516171819
public class AnnounceTest { @Test public void test() { Announce command = new Announce("TEST"); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("ANNOUNCE TEST"); output.printLn("PRINT");
212223242526272829
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { Announce command = new Announce(); command.getCommandByteArray(); }
28293031323334353637
command.getCommandByteArray(); } @Test public void testFake() { Announce command = new Announce("TEST"); command.setMessage(""); command.getMessage(); command.toString(); }