Fixed a test

This commit is contained in:
Florian CUNY 2021-01-16 15:22:40 +01:00
parent f7e901def9
commit 6105a2fe64

View File

@ -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"));
}