From 607db5b07f192c74853cb52fe784c5c78f21a2be Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 9 Dec 2018 13:20:49 +0100 Subject: [PATCH] Removed some 'throws IOException' in IslandResetCommandTest --- .../api/commands/island/IslandResetCommandTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/java/world/bentobox/bentobox/api/commands/island/IslandResetCommandTest.java b/src/test/java/world/bentobox/bentobox/api/commands/island/IslandResetCommandTest.java index b8993c2d5..ac8410970 100644 --- a/src/test/java/world/bentobox/bentobox/api/commands/island/IslandResetCommandTest.java +++ b/src/test/java/world/bentobox/bentobox/api/commands/island/IslandResetCommandTest.java @@ -122,10 +122,9 @@ public class IslandResetCommandTest { /** * Test method for . - * @throws IOException */ @Test - public void testNoIsland() throws IOException { + public void testNoIsland() { IslandResetCommand irc = new IslandResetCommand(ic); // Test the reset command // Does not have island @@ -134,7 +133,7 @@ public class IslandResetCommandTest { } @Test - public void testNotOwner() throws IOException { + public void testNotOwner() { IslandResetCommand irc = new IslandResetCommand(ic); // Now has island, but is not the owner when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true); @@ -143,7 +142,7 @@ public class IslandResetCommandTest { } @Test - public void testHasTeam() throws IOException { + public void testHasTeam() { IslandResetCommand irc = new IslandResetCommand(ic); // Now has island, but is not the owner when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true); @@ -154,7 +153,7 @@ public class IslandResetCommandTest { } @Test - public void testNoResetsLeft() throws IOException { + public void testNoResetsLeft() { IslandResetCommand irc = new IslandResetCommand(ic); // Now has island, but is not the owner when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true);