From c040ce3bac69d7fdf9790dd2e0045a60741f9b59 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:40:55 +0000 Subject: [PATCH 1/2] Initial plan From 74429470c44fcb9f12cab346d606709ddd2f5488 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:59:06 +0000 Subject: [PATCH 2/2] Remove redundant testOnPlayerTeleportInVanillaNether and testOnPlayerTeleportInVanillaEnd tests Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com> --- .../border/listeners/PlayerListenerTest.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/test/java/world/bentobox/border/listeners/PlayerListenerTest.java b/src/test/java/world/bentobox/border/listeners/PlayerListenerTest.java index 678f06d..0dc3db0 100644 --- a/src/test/java/world/bentobox/border/listeners/PlayerListenerTest.java +++ b/src/test/java/world/bentobox/border/listeners/PlayerListenerTest.java @@ -252,38 +252,6 @@ public void testOnPlayerTeleportInIslandEnd() { mockedBukkit.verify(Bukkit::getScheduler); } - /** - * Test method for {@link world.bentobox.border.listeners.PlayerListener#onPlayerTeleport(org.bukkit.event.player.PlayerTeleportEvent)}. - * Vanilla (non-island) nether - should return early without any border activity. - */ - @Test - public void testOnPlayerTeleportInVanillaNether() { - when(addon.inGameWorld(any())).thenReturn(true); - when(iwm.isIslandNether(any())).thenReturn(false); // vanilla nether, not island nether - when(iwm.isIslandEnd(any())).thenReturn(false); - PlayerTeleportEvent event = new PlayerTeleportEvent(player, from, to, TeleportCause.NETHER_PORTAL); - pl.onPlayerTeleport(event); - verify(show).hideBorder(user); - verify(show).clearUser(user); - mockedBukkit.verify(Bukkit::getScheduler); - } - - /** - * Test method for {@link world.bentobox.border.listeners.PlayerListener#onPlayerTeleport(org.bukkit.event.player.PlayerTeleportEvent)}. - * Vanilla (non-island) end - should return early without any border activity. - */ - @Test - public void testOnPlayerTeleportInVanillaEnd() { - when(addon.inGameWorld(any())).thenReturn(true); - when(iwm.isIslandNether(any())).thenReturn(false); - when(iwm.isIslandEnd(any())).thenReturn(false); // vanilla end, not island end - PlayerTeleportEvent event = new PlayerTeleportEvent(player, from, to, TeleportCause.END_PORTAL); - pl.onPlayerTeleport(event); - verify(show).hideBorder(user); - verify(show).clearUser(user); - mockedBukkit.verify(Bukkit::getScheduler); - } - /** * Test method for {@link world.bentobox.border.listeners.PlayerListener#onPlayerLeaveIsland(org.bukkit.event.player.PlayerMoveEvent)}. */