public void testGetSetters() throws Exception { a.setGender(true); assertTrue(a.getGender()); a.setLvl(1); assertEquals(1, a.getLvl()); a.setNickname("tyrone"); assertEquals("tyrone", a.getNickname()); // a.setPlayerID(12); // assertEquals(12,a.getPlayerID()); // a.setPokeID(12); // assertEquals(12,a.getID()); type.clear(); type.add(PokeType.ROCK); a.setType(type); assertEquals(PokeType.ROCK, a.getType().get(0)); a.setLvl(5); assertEquals(5, a.getLvl()); a.setXp(40); assertEquals(40, a.getXp()); }
public void testGetGender() throws Exception { assertFalse(a.getGender()); assertTrue(b.getGender()); }