@Test public void keyREnablesShroudRevealingForPlayer() throws SlickException { Map map = mock(Map.class); when(battleField.getMap()).thenReturn(map); debugKeysListener.keyPressed(Input.KEY_R, ANY_CHAR); verify(map).revealAllShroudFor(player); }
@Test public void keyReleaseDoesNothing() { debugKeysListener.keyReleased(ANY_KEY, ANY_CHAR); verifyZeroInteractions(battleField); }
@Test public void anyOtherKeyDoesNothing() { debugKeysListener.keyPressed(ANY_KEY, ANY_CHAR); verifyZeroInteractions(battleField); }