From 2403cd201fb57c489c5a07a99e244b3360516767 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 27 Jul 2019 10:43:58 -0700 Subject: [PATCH] Fixes tests, removes debug. --- .../bentobox/bentobox/managers/BlueprintsManager.java | 1 - .../bentobox/bentobox/managers/BlueprintsManagerTest.java | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java b/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java index e089ed65c..70117c551 100644 --- a/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java @@ -157,7 +157,6 @@ public class BlueprintsManager { * @param addon the {@link GameModeAddon} to load the blueprints of. */ public void loadBlueprintBundles(@NonNull GameModeAddon addon) { - plugin.logDebug("Loading blueprint bundles"); Bukkit .getScheduler() .runTaskAsynchronously( diff --git a/src/test/java/world/bentobox/bentobox/managers/BlueprintsManagerTest.java b/src/test/java/world/bentobox/bentobox/managers/BlueprintsManagerTest.java index adb641503..97d918727 100644 --- a/src/test/java/world/bentobox/bentobox/managers/BlueprintsManagerTest.java +++ b/src/test/java/world/bentobox/bentobox/managers/BlueprintsManagerTest.java @@ -246,8 +246,6 @@ public class BlueprintsManagerTest { File blueprints = new File(dataFolder, BlueprintsManager.FOLDER_NAME); File d = new File(blueprints, "default.json"); assertTrue(d.exists()); - verify(plugin).log("Loaded Blueprint Bundle 'default' for name"); - verify(plugin).log("Loaded blueprint 'bedrock' for name"); return task; }}); @@ -267,8 +265,6 @@ public class BlueprintsManagerTest { public BukkitTask answer(InvocationOnMock invocation) throws Throwable { invocation.getArgumentAt(1,Runnable.class).run(); verify(plugin).logError(eq("No blueprint bundles found! Creating a default one.")); - verify(plugin).log("Loaded Blueprint Bundle 'default' for name"); - verify(plugin).log("Loaded blueprint 'bedrock' for name"); return task; }}); BlueprintsManager bpm = new BlueprintsManager(plugin); @@ -309,7 +305,6 @@ public class BlueprintsManagerTest { @Override public BukkitTask answer(InvocationOnMock invocation) throws Throwable { invocation.getArgumentAt(1,Runnable.class).run(); - verify(plugin, Mockito.times(2)).log("Loaded blueprint 'bedrock' for name"); return task; }}); BlueprintsManager bpm = new BlueprintsManager(plugin); @@ -317,7 +312,7 @@ public class BlueprintsManagerTest { bpm.loadBlueprintBundles(addon); // Load them again bpm.loadBlueprints(addon); - + verify(plugin, Mockito.times(2)).log("Loaded blueprint 'bedrock' for name"); } /**