910111213141516171819
public class TypeTest { @Test public void test() { Type command = new Type("TEST.TXT"); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("TYPE TEST.TXT"); output.printLn("PRINT");
212223242526272829
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { Type command = new Type(); command.getCommandByteArray(); }
28293031323334353637
command.getCommandByteArray(); } @Test public void testFake() { Type command = new Type(); command.setFileName(""); command.getFileName(); command.toString(); }