public class TestMoveFactory {
@Test
public void testCreateMoveParsing(){
Move testMove = MoveFactory.createMove("Absorb");
assertEquals("Absorb", testMove.getName());
assertEquals(Types.GRASS, testMove.getAttackType());
assertEquals("Special", testMove.getCategory());
assertEquals(20, testMove.getDamage());
assertEquals(100, testMove.getAccuracy());
assertEquals(25, testMove.getPowerPointsMax());
/*
* need to make sure that it doesnt break when
* there is a "-" in the text file for accuracy/power
*/
testMove = MoveFactory.createMove("Agility");
assertEquals("Agility", testMove.getName());
assertEquals(Types.PSYCHIC, testMove.getAttackType());
assertEquals("Status", testMove.getCategory());
assertEquals(-1, testMove.getDamage());
assertEquals(-1, testMove.getAccuracy());
assertEquals(30, testMove.getPowerPointsMax());
/*
* Agility Psychic Status - - 30
*/
}