mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 09:57:40 +01:00
Update enums to latest naming
This commit is contained in:
parent
5e8e05c815
commit
07969c0158
@ -339,7 +339,7 @@ public class BreakBlocksListenerTest extends AbstractCommonSetup {
|
|||||||
when(island.isAllowed(any(), any())).thenReturn(false);
|
when(island.isAllowed(any(), any())).thenReturn(false);
|
||||||
Vehicle vehicle = mock(Vehicle.class);
|
Vehicle vehicle = mock(Vehicle.class);
|
||||||
when(vehicle.getLocation()).thenReturn(location);
|
when(vehicle.getLocation()).thenReturn(location);
|
||||||
when(vehicle.getType()).thenReturn(EntityType.BOAT);
|
when(vehicle.getType()).thenReturn(EntityType.ACACIA_BOAT);
|
||||||
VehicleDamageEvent e = new VehicleDamageEvent(vehicle, mockPlayer, 10);
|
VehicleDamageEvent e = new VehicleDamageEvent(vehicle, mockPlayer, 10);
|
||||||
bbl.onVehicleDamageEvent(e);
|
bbl.onVehicleDamageEvent(e);
|
||||||
assertTrue(e.isCancelled());
|
assertTrue(e.isCancelled());
|
||||||
|
@ -182,7 +182,7 @@ public class PlayersManagerTest {
|
|||||||
when(p.getUniqueId()).thenReturn(uuid);
|
when(p.getUniqueId()).thenReturn(uuid);
|
||||||
AttributeInstance at = mock(AttributeInstance.class);
|
AttributeInstance at = mock(AttributeInstance.class);
|
||||||
when(at.getValue()).thenReturn(20D);
|
when(at.getValue()).thenReturn(20D);
|
||||||
when(p.getAttribute(Attribute.GENERIC_MAX_HEALTH)).thenReturn(at);
|
when(p.getAttribute(Attribute.MAX_HEALTH)).thenReturn(at);
|
||||||
when(p.getName()).thenReturn("tastybento");
|
when(p.getName()).thenReturn("tastybento");
|
||||||
User.getInstance(p);
|
User.getInstance(p);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user