Package vee.enemies

Examples of vee.enemies.Henchwoman


   */
  @Test
  public void testEquipCorsetOnEmptyChestSlot() {
    System.out.println("Testing equipping a corset on an empty chest slot");
    Corset corset = new Corset();
    Henchwoman h = new Henchwoman();
   
    h.unequip(h.equipment.getChest());

    assertEquals(h.equipment.getChest(), null);
    boolean result = h.equip(corset);

    assertEquals(result, true);
    assertEquals(h.isEquipped(corset), true);

  }
View Full Code Here


  @Test
  public void testEquipCorsetOnEquippedChestSlot() {
    System.out.println("Testing equipping a corset on an equipped chest slot");
    Corset corset = new Corset();
    Corset corset2 = new Corset();
    Henchwoman h = new Henchwoman();

    h.equip(corset);
    boolean result = h.equip(corset2);

    assertEquals(result, true);
    assertEquals(h.isEquipped(corset2), true);
    assertEquals(h.isEquipped(corset), false);

  }
View Full Code Here

  @Test
  public void testEquipToEmptySlot() {
    System.out.println("Testing equipping a piece of equipment to an empty slot");

    Corset corset = new Corset();
    Henchwoman h = new Henchwoman();
    h.inventory.addBag();

    boolean result = h.equip(corset);
    assertEquals(result, true);

  }
View Full Code Here

  public void testEquipToAlreadyEquippedSlot() {
    System.out.println("Testing equipping a piece of equipment to an already equipped slot");

    Corset corset = new Corset();
    Doublet doublet = new Doublet();
    Henchwoman h = new Henchwoman();
    h.inventory.addBag();

    h.equip(corset);
    boolean result = h.equip(doublet);

    assertEquals(result, true);
    assertEquals(h.isEquipped(doublet), true);
    assertEquals(h.isEquipped(corset), false);


  }
View Full Code Here

  public void testUnequip() {
    System.out.println("Testing equipping and unequipping a piece of equipment");

    Corset corset = new Corset();

    Henchwoman h = new Henchwoman();
    h.inventory.addBag();

    h.equip(corset);
    assertEquals(h.isEquipped(corset), true);

    h.unequip(corset);
    assertEquals(h.isEquipped(corset), false);
    assertEquals(h.inInventory(corset), true);


  }
View Full Code Here

    Doublet doublet = new Doublet();
    Sword sword = new Sword();
    Stilleto stilleto = new Stilleto();
    Stilleto stilleto2 = new Stilleto();

    Henchwoman h = new Henchwoman();
    h.inventory.addBag();

    h.addToInventory(corset);
    h.addToInventory(doublet);
    h.addToInventory(sword);
    h.addToInventory(stilleto);

    assertEquals(h.inInventory(corset), true);
    assertEquals(h.inInventory(doublet), true);
    assertEquals(h.inInventory(sword), true);
    assertEquals(h.inInventory(stilleto), true);
    assertEquals(h.inInventory(stilleto2), false);

  }
View Full Code Here


    //attack test
    PenelopeFox fox = PenelopeFox.getInstance();

    Henchwoman second_henchwoman = new Henchwoman();


    HealthElixir healthElixir = new HealthElixir();


    fox.beAttacked(second_henchwoman.attack());
    System.out.println("After attack "+fox.getCurrentHealth());

    healthElixir.consume(fox);
    System.out.println("After elixir consume "+fox.getCurrentHealth());
   
View Full Code Here

   
    /* request the component have default focus */
    this.requestFocusInWindow();
   
    mPlayer = new Player();
    mHenchwoman = new Henchwoman();

    setup();



View Full Code Here

TOP

Related Classes of vee.enemies.Henchwoman

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.