Exemplo n.º 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');
 }
Exemplo n.º 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');
 }
Exemplo n.º 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);
  }
Exemplo n.º 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);
  }