Beispiel #1
0
  @Test
  public void testCantProcessQweString() {
    // given
    Command command = new Exit(view);

    // when
    boolean canProcess = command.canProcess("qwe");

    // then
    assertFalse(canProcess);
  }
Beispiel #2
0
  @Test
  public void testCanProcessExitString() {
    // given
    Command command = new Exit(view);

    // when
    boolean canProcess = command.canProcess("exit");

    // then
    assertTrue(canProcess);
  }