Package org.darkhelm.dragonchess.server.piece

Examples of org.darkhelm.dragonchess.server.piece.PieceDef


  }

  @Test
  public void testHero() {
    try {
      PieceDef piece = loadPiece("hero.xml");

      assertTrue(piece.getName() == Pieces.HERO);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here


  }

  @Test
  public void testKing() {
    try {
      PieceDef piece = loadPiece("king.xml");

      assertTrue(piece.getName() == Pieces.KING);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testMage() {
    try {
      PieceDef piece = loadPiece("mage.xml");

      assertTrue(piece.getName() == Pieces.MAGE);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testOliphant() {
    try {
      PieceDef piece = loadPiece("oliphant.xml");

      assertTrue(piece.getName() == Pieces.OLIPHANT);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testPaladin() {
    try {
      PieceDef piece = loadPiece("paladin.xml");

      assertTrue(piece.getName() == Pieces.PALADIN);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testSylph() {
    try {
      PieceDef piece = loadPiece("sylph.xml");

      assertTrue(piece.getName() == Pieces.SYLPH);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testThief() {
    try {
      PieceDef piece = loadPiece("thief.xml");

      assertTrue(piece.getName() == Pieces.THIEF);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testUnicorn() {
    try {
      PieceDef piece = loadPiece("unicorn.xml");

      assertTrue(piece.getName() == Pieces.UNICORN);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testWarrior() {
    try {
      PieceDef piece = loadPiece("warrior.xml");

      assertTrue(piece.getName() == Pieces.WARRIOR);

    } catch (JiBXException e) {
      fail(e.getMessage());
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.darkhelm.dragonchess.server.piece.PieceDef

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.