From a5a75c6854f8d017193300345cd55a19f72ab131 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 26 May 2018 15:50:10 -0700 Subject: [PATCH] Fixed tests. --- .../bskyblock/api/placeholders/PlaceholderBuilder.java | 5 +++++ .../us/tastybento/bskyblock/commands/IslandCommandTest.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/tastybento/bskyblock/api/placeholders/PlaceholderBuilder.java b/src/main/java/us/tastybento/bskyblock/api/placeholders/PlaceholderBuilder.java index 226218dab..8c00a7caf 100644 --- a/src/main/java/us/tastybento/bskyblock/api/placeholders/PlaceholderBuilder.java +++ b/src/main/java/us/tastybento/bskyblock/api/placeholders/PlaceholderBuilder.java @@ -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; diff --git a/src/test/java/us/tastybento/bskyblock/commands/IslandCommandTest.java b/src/test/java/us/tastybento/bskyblock/commands/IslandCommandTest.java index 352da1990..6d282cad4 100644 --- a/src/test/java/us/tastybento/bskyblock/commands/IslandCommandTest.java +++ b/src/test/java/us/tastybento/bskyblock/commands/IslandCommandTest.java @@ -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);