mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 13:45:14 +01:00
Fixed tests.
This commit is contained in:
parent
4bf0d8ec0f
commit
a5a75c6854
@ -10,6 +10,11 @@ public class PlaceholderBuilder {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value this placeholder should take
|
||||||
|
* @param value
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public PlaceholderBuilder value(Placeholder.PlaceholderRequest value) {
|
public PlaceholderBuilder value(Placeholder.PlaceholderRequest value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
return this;
|
return this;
|
||||||
|
@ -143,7 +143,7 @@ public class IslandCommandTest {
|
|||||||
when(plugin.getSettings()).thenReturn(settings);
|
when(plugin.getSettings()).thenReturn(settings);
|
||||||
|
|
||||||
// User has an island - so go there!
|
// 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<>()));
|
assertTrue(ic.execute(user, new ArrayList<>()));
|
||||||
when(user.getWorld()).thenReturn(world);
|
when(user.getWorld()).thenReturn(world);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user