/** * Test whether keyReleased() works correctly. Key: 3. * * @throws Exception possible Exception. */ @Test public void testKeyReleased3() throws Exception { testWon.keyReleased(Input.KEY_3, 'a'); }
/** * Test whether keyReleased() works correctly. Key: yen. * * @throws Exception possible Exception. */ @Test public void testKeyReleasedDefault() throws Exception { testWon.keyReleased(Input.KEY_YEN, 'a'); }
/** * Test whether keyReleased() works correctly. Key: 1. * * @throws Exception possible Exception. */ @Test public void testKeyReleased1() throws Exception { testWon.keyReleased(Input.KEY_1, 'a'); verify(mockedGame).newGame(1); }
/** * Test whether keyReleased() works correctly. Key: space. * * @throws Exception possible Exception. */ @Test public void testKeyReleasedSpace() throws Exception { testWon.keyReleased(Input.KEY_SPACE, 'a'); verify(mockedGame).enterState(5); }