From 8f767d5e44cfa4bf9828ebf6020b1bff42d39b3b Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 18 Mar 2021 18:45:05 -0700 Subject: [PATCH] Fix tests - event is canceled now. Change done here: 592b4e3d1f26023017d144e86cf958880831acb6 --- .../listeners/PortalTeleportationListenerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/world/bentobox/bentobox/listeners/PortalTeleportationListenerTest.java b/src/test/java/world/bentobox/bentobox/listeners/PortalTeleportationListenerTest.java index 9da3be7e3..353ac000c 100644 --- a/src/test/java/world/bentobox/bentobox/listeners/PortalTeleportationListenerTest.java +++ b/src/test/java/world/bentobox/bentobox/listeners/PortalTeleportationListenerTest.java @@ -370,8 +370,8 @@ public void testonIslandPortalFromWorldToNetherIsland() { when(iwm.isNetherIslands(any())).thenReturn(true); when(iwm.isNetherGenerate(any())).thenReturn(true); assertTrue(np.onIslandPortal(e)); - // Event is not canceled - assertFalse(e.isCancelled()); + // Event is canceled + assertTrue(e.isCancelled()); // If nether islands, then to = from but in nether verify(from).toVector(); // Do not go to spawn @@ -407,7 +407,7 @@ public void testonIslandPortalFromWorldToNetherIslandWithSpawnDefined() { assertTrue(np.onIslandPortal(e)); // Verify - assertFalse(e.isCancelled()); + assertTrue(e.isCancelled()); // If nether islands, then to = from but in nether verify(from).toVector(); // Do not go to spawn @@ -438,7 +438,7 @@ public void testonIslandPortalFromWorldToNetherIslandWithNoSpawnDefined() { assertTrue(np.onIslandPortal(e)); // Verify - assertFalse(e.isCancelled()); + assertTrue(e.isCancelled()); // If nether islands, then to = from but in nether verify(from).toVector(); // Do not go to spawn