2930313233343536373839
/** * Tests for attack. */ @Test public void testAttack() { final Gandhi g = new Gandhi(); final Creature c = new Creature(); g.attack(null); g.attack(c); assertFalse(c.isAttacking()); }
4142434445464748
/** * Tests for canAttackNow. */ @Test public void testCanAttackNow() { final Gandhi g = new Gandhi(); assertFalse(g.canAttackNow(null)); }
5253545556575859
/** * Tests for hasValidTarget. */ @Test public void testHasValidTarget() { final Gandhi g = new Gandhi(); assertFalse(g.hasValidTarget(null)); }