122123124125126127128129130131132133134
} @Test public void testHero() { try { PieceDef piece = loadPiece("hero.xml"); assertTrue(piece.getName() == Pieces.HERO); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
139140141142143144145146147148149150151
} @Test public void testKing() { try { PieceDef piece = loadPiece("king.xml"); assertTrue(piece.getName() == Pieces.KING); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
156157158159160161162163164165166167168
} @Test public void testMage() { try { PieceDef piece = loadPiece("mage.xml"); assertTrue(piece.getName() == Pieces.MAGE); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
173174175176177178179180181182183184185
} @Test public void testOliphant() { try { PieceDef piece = loadPiece("oliphant.xml"); assertTrue(piece.getName() == Pieces.OLIPHANT); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
190191192193194195196197198199200201202
} @Test public void testPaladin() { try { PieceDef piece = loadPiece("paladin.xml"); assertTrue(piece.getName() == Pieces.PALADIN); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
207208209210211212213214215216217218219
} @Test public void testSylph() { try { PieceDef piece = loadPiece("sylph.xml"); assertTrue(piece.getName() == Pieces.SYLPH); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
224225226227228229230231232233234235236
} @Test public void testThief() { try { PieceDef piece = loadPiece("thief.xml"); assertTrue(piece.getName() == Pieces.THIEF); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
241242243244245246247248249250251252253
} @Test public void testUnicorn() { try { PieceDef piece = loadPiece("unicorn.xml"); assertTrue(piece.getName() == Pieces.UNICORN); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();
258259260261262263264265266267268269270
} @Test public void testWarrior() { try { PieceDef piece = loadPiece("warrior.xml"); assertTrue(piece.getName() == Pieces.WARRIOR); } catch (JiBXException e) { fail(e.getMessage()); e.printStackTrace();