Package info.pello.tooomb

Examples of info.pello.tooomb.Dungeon


  @Test
  /**
   * test if newly created Dungeons have expected name
   */
  public void testNew() {
    testedDungeon = new Dungeon();
    assertEquals("Default dungeon name ok.",testedDungeon.getName(),"Dark Dungeon");
    String name = "Terror Dungeon";
    testedDungeon = new Dungeon(name);
    assertEquals("Set dungeon name and is ok.",testedDungeon.getName(),name);
  }
View Full Code Here


  @Test
  /**
   * test if Dungeons newly created Dungeons haven't exit
   */
  public void testNoExit() {
      testedDungeon = new Dungeon();
      assertFalse("Dungeons have no exit",testedDungeon.isExit());
  }
View Full Code Here

  /**
   * test if Dungeons have damage points within limits.
   */
  public void testDamage() {
    for (int i = 0; i < 100; i++) {
      testedDungeon = new Dungeon();
      assertTrue("Dungeon damage between 0 and 6",testedDungeon.getDamage()>= 0 && testedDungeon.getDamage() < 6);
    }
  }
View Full Code Here

TOP

Related Classes of info.pello.tooomb.Dungeon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.