Skip to content

Commit

Permalink
Fix tests - event is canceled now.
Browse files Browse the repository at this point in the history
Change done here: 592b4e3
  • Loading branch information
tastybento committed Mar 19, 2021
1 parent 87bdee0 commit 8f767d5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8f767d5

Please sign in to comment.