Package pokemon

Examples of pokemon.Pokemon


    assertEquals(2.0, f.processDamageModifier(Types.WATER), .01);
  }

  @Test
  public void testProcessAttackModifierWater() {
    Pokemon p = new Pokemon();
    WaterType f = new WaterType(p);
    assertEquals(1.0, f.processDamageModifier(Types.BUG), .01);
    assertEquals(1.0, f.processDamageModifier(Types.DRAGON), .01);
    assertEquals(2.0, f.processDamageModifier(Types.ELECTRIC), .01);
    assertEquals(1.0, f.processDamageModifier(Types.FIGHTING), .01);
View Full Code Here


    assertTrue(f.getPokemonType2() == null);
  }
  //Now we test for pokemon with 2 types
  @Test
  public void testGetType2(){
    Pokemon p = new Pokemon();
    GrassType g = new GrassType(p);
    PoisonType f = new PoisonType(g);
   
    assertTrue(f.getPokemonType1() == Types.POISON);
    assertTrue(f.getPokemonType2() == Types.GRASS);
View Full Code Here

  /*
     * TypeDecorator tests to make sure getPokemonType1() and getPokemonType2() work
     */
  @Test //test to make sure we can get the first type and that if the pokemon has 1 type it will return taht type as an enum and return null for getPokemonType2()
  public void testGetType1(){
    Pokemon p = new Pokemon();
    WaterType f = new WaterType(p);
    assertTrue(f.getPokemonType1() == Types.WATER);
    assertTrue(f.getPokemonType2() == null);
  }
View Full Code Here

    assertTrue(f.getPokemonType2() == null);
  }
  //Now we test for pokemon with 2 types
  @Test
  public void testGetType2(){
    Pokemon p = new Pokemon();
    GrassType g = new GrassType(p);
    PoisonType f = new PoisonType(g);
   
    assertTrue(f.getPokemonType1() == Types.POISON);
    assertTrue(f.getPokemonType2() == Types.GRASS);
View Full Code Here

TOP

Related Classes of pokemon.Pokemon

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.