@Test public void testCantProcessQweString() { // given Command command = new Exit(view); // when boolean canProcess = command.canProcess("qwe"); // then assertFalse(canProcess); }
@Test public void testCanProcessExitString() { // given Command command = new Exit(view); // when boolean canProcess = command.canProcess("exit"); // then assertTrue(canProcess); }