mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-22 18:45:22 +01:00
Removed code smell
This commit is contained in:
parent
2cc574d7b0
commit
b01c1551a6
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user