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