Fixed tests.

This commit is contained in:
tastybento 2018-05-26 15:50:10 -07:00
parent 4bf0d8ec0f
commit a5a75c6854
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ public class PlaceholderBuilder {
return this;
}
/**
* The value this placeholder should take
* @param value
* @return
*/
public PlaceholderBuilder value(Placeholder.PlaceholderRequest value) {
this.value = value;
return this;

View File

@ -143,7 +143,7 @@ public class IslandCommandTest {
when(plugin.getSettings()).thenReturn(settings);
// User has an island - so go there!
when(im.hasIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(true);
when(im.getIsland(Mockito.any(), Mockito.eq(uuid))).thenReturn(island);
assertTrue(ic.execute(user, new ArrayList<>()));
when(user.getWorld()).thenReturn(world);