Example #1
0
  /** Tests {@link PlayerFish#addLife()} when attempting to add a life above the maximum. */
  @Test
  public void testAddLife2() {
    pf.livesProperty().set(settings.getInteger("MAX_LIVES"));
    pf.addLife();

    assertEquals(settings.getInteger("MAX_LIVES"), pf.getLives());
  }