Beispiel #1
0
 /**
  * Test whether keyReleased() works correctly. Key: 3.
  *
  * @throws Exception possible Exception.
  */
 @Test
 public void testKeyReleased3() throws Exception {
   testWon.keyReleased(Input.KEY_3, 'a');
 }
Beispiel #2
0
 /**
  * Test whether keyReleased() works correctly. Key: yen.
  *
  * @throws Exception possible Exception.
  */
 @Test
 public void testKeyReleasedDefault() throws Exception {
   testWon.keyReleased(Input.KEY_YEN, 'a');
 }
Beispiel #3
0
  /**
   * 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);
  }
Beispiel #4
0
  /**
   * 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);
  }