Fixes assertion error.

This commit is contained in:
tastybento 2019-02-21 12:42:53 -08:00
parent 83827da448
commit b711f3fd6c

View File

@ -174,7 +174,7 @@ public class AdminSetspawnCommandTest {
Optional<Island> oi = Optional.of(island);
when(im.getIslandAt(Mockito.any(Location.class))).thenReturn(oi);
AdminSetspawnCommand c = new AdminSetspawnCommand(ac);
assertFalse(c.execute(user, "setspawn", Collections.emptyList()));
assertTrue(c.execute(user, "setspawn", Collections.emptyList()));
Mockito.verify(user).sendMessage("commands.admin.setspawn.already-spawn");
}
}