@Test public void testAppliesToCharacterCharacter() { final Character caster = mock(Character.class); final Character deadTarget = mock(Character.class); when(deadTarget.isDead()).thenReturn(Boolean.TRUE); final Character aliveTarget = mock(Character.class); assertFalse(immobilizationEffect.appliesTo(caster, deadTarget)); assertTrue(immobilizationEffect.appliesTo(caster, aliveTarget)); }
@Override public boolean appliesTo(Character caster, Character target) { if (target.isDead()) { return false; } return true; }
ImmobilizationEffect implements Effect { @Override public boolean appliesTo(Character caster, Character target) { if (target.isDead()) { return false; } return true; } }
ImmobilizationEffect implements Effect { @Override public boolean appliesTo(Character caster, Character target) { if (target.isDead()) { return false; } return true; }  }
ImmobilizationEffect implements Effect { @Override public boolean appliesTo(Character caster, Character target) { if (target.isDead()) { return false; } return true; }  @Override void apply(Character caster, Character target); @Override boolean appliesTo(Character caster, Character target); @Override boolean appliesTo(Character caster, WorldObject worldobject); @Override void apply(Character caster, WorldObject target); }
ImmobilizationEffect implements Effect { @Override public boolean appliesTo(Character caster, Character target) { if (target.isDead()) { return false; } return true; }  @Override void apply(Character caster, Character target); @Override boolean appliesTo(Character caster, Character target); @Override boolean appliesTo(Character caster, WorldObject worldobject); @Override void apply(Character caster, WorldObject target);  }