mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Change to assertNotEquals
This commit is contained in:
parent
4ce87cd858
commit
42aefc530e
@ -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.ALLOW, e.useInteractedBlock());
|
||||
assertEquals(Event.Result.DEFAULT, e.useItemInHand()); // I don't have any idea why it's like that
|
||||
assertNotEquals(Event.Result.DENY, e.useInteractedBlock());
|
||||
assertNotEquals(Event.Result.DENY, e.useItemInHand());
|
||||
verify(notifier, never()).notify(any(), eq("protection.protected"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user