Removed some 'throws IOException' in IslandResetCommandTest

This commit is contained in:
Florian CUNY 2018-12-09 13:20:49 +01:00
parent ae23ad913a
commit 607db5b07f

View File

@ -122,10 +122,9 @@ public class IslandResetCommandTest {
/** /**
* Test method for . * Test method for .
* @throws IOException
*/ */
@Test @Test
public void testNoIsland() throws IOException { public void testNoIsland() {
IslandResetCommand irc = new IslandResetCommand(ic); IslandResetCommand irc = new IslandResetCommand(ic);
// Test the reset command // Test the reset command
// Does not have island // Does not have island
@ -134,7 +133,7 @@ public class IslandResetCommandTest {
} }
@Test @Test
public void testNotOwner() throws IOException { public void testNotOwner() {
IslandResetCommand irc = new IslandResetCommand(ic); IslandResetCommand irc = new IslandResetCommand(ic);
// Now has island, but is not the owner // Now has island, but is not the owner
when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true); when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true);
@ -143,7 +142,7 @@ public class IslandResetCommandTest {
} }
@Test @Test
public void testHasTeam() throws IOException { public void testHasTeam() {
IslandResetCommand irc = new IslandResetCommand(ic); IslandResetCommand irc = new IslandResetCommand(ic);
// Now has island, but is not the owner // Now has island, but is not the owner
when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true); when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true);
@ -154,7 +153,7 @@ public class IslandResetCommandTest {
} }
@Test @Test
public void testNoResetsLeft() throws IOException { public void testNoResetsLeft() {
IslandResetCommand irc = new IslandResetCommand(ic); IslandResetCommand irc = new IslandResetCommand(ic);
// Now has island, but is not the owner // Now has island, but is not the owner
when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true); when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true);