mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Fixed a test
This commit is contained in:
parent
f7e901def9
commit
6105a2fe64
@ -356,8 +356,8 @@ public class BlockInteractionListenerTest {
|
||||
when(item.getType()).thenReturn(Material.BLAZE_SPAWN_EGG);
|
||||
PlayerInteractEvent e = new PlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, item, clickedBlock, BlockFace.EAST, hand);
|
||||
bil.onPlayerInteract(e);
|
||||
assertEquals(Event.Result.DENY, e.useInteractedBlock());
|
||||
assertEquals(Event.Result.DENY, e.useItemInHand());
|
||||
assertEquals(Event.Result.ALLOW, e.useInteractedBlock());
|
||||
assertEquals(Event.Result.ALLOW, e.useItemInHand());
|
||||
verify(notifier, never()).notify(any(), eq("protection.protected"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user