use of org.spongepowered.api.event.cause.entity.health.HealthModifier in project SpongeAPI by SpongePowered.
the class SpongeAbstractHealEntityEventTest method testNotApplicableModifer.
@Test(expected = IllegalArgumentException.class)
public void testNotApplicableModifer() {
HealEntityEvent event = SpongeEventFactory.createHealEntityEvent(Cause.of(EventContext.empty(), "none"), Lists.newArrayList(), mockParam(Entity.class), 0);
HealthModifier modifier = mockParam(HealthModifier.class);
assertThat(event.isModifierApplicable(modifier), is(false));
event.getOriginalHealingModifierAmount(modifier);
}
Aggregations