@Test public void testApplyCharacterWorldObject() { final WorldObject obj = mock(WorldObject.class); final Character caster = mock(Character.class); try { invisibilityEffect.apply(caster, obj); fail("Applying an effect for characters to a world object didn't fail."); } catch (final InvalidTargetException e) { } }
@Override public void apply(Character caster, Character target) { target.setInvisible(true); }
InvisibilityEffect implements Effect { @Override public void apply(Character caster, Character target) { target.setInvisible(true); } }
InvisibilityEffect implements Effect { @Override public void apply(Character caster, Character target) { target.setInvisible(true); }  }
InvisibilityEffect implements Effect { @Override public void apply(Character caster, Character target) { target.setInvisible(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); }
InvisibilityEffect implements Effect { @Override public void apply(Character caster, Character target) { target.setInvisible(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);  }