Removed code smell

This commit is contained in:
tastybento 2020-10-10 19:00:59 -07:00
parent 2cc574d7b0
commit b01c1551a6
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ public abstract class AbstractAcidEvent extends Event implements Cancellable {
* @param rainDamage
* @param protection
*/
public AbstractAcidEvent(Player player, double protection, List<PotionEffectType> potionEffects) {
protected AbstractAcidEvent(Player player, double protection, List<PotionEffectType> potionEffects) {
this.player = player;
this.protection = protection;
this.potionEffects = potionEffects;

View File

@ -48,18 +48,18 @@ public class AcidEventTest {
@Test
public void testGetTotalDamage() {
assertTrue(e.getTotalDamage() == 10D);
assertEquals(10D, e.getTotalDamage(), 0D);
}
@Test
public void testGetProtection() {
assertTrue(e.getProtection() == 5D);
assertEquals(5D, e.getProtection(), 0D);
}
@Test
public void testSetTotalDamage() {
e.setTotalDamage(50);
assertTrue(e.getTotalDamage() == 50D);
assertEquals(50D, e.getTotalDamage(), 0D);
}
@Test