Fixes tests, removes debug.

This commit is contained in:
tastybento 2019-07-27 10:43:58 -07:00
parent f4c6701383
commit 2403cd201f
2 changed files with 1 additions and 7 deletions

View File

@ -157,7 +157,6 @@ public class BlueprintsManager {
* @param addon the {@link GameModeAddon} to load the blueprints of. * @param addon the {@link GameModeAddon} to load the blueprints of.
*/ */
public void loadBlueprintBundles(@NonNull GameModeAddon addon) { public void loadBlueprintBundles(@NonNull GameModeAddon addon) {
plugin.logDebug("Loading blueprint bundles");
Bukkit Bukkit
.getScheduler() .getScheduler()
.runTaskAsynchronously( .runTaskAsynchronously(

View File

@ -246,8 +246,6 @@ public class BlueprintsManagerTest {
File blueprints = new File(dataFolder, BlueprintsManager.FOLDER_NAME); File blueprints = new File(dataFolder, BlueprintsManager.FOLDER_NAME);
File d = new File(blueprints, "default.json"); File d = new File(blueprints, "default.json");
assertTrue(d.exists()); assertTrue(d.exists());
verify(plugin).log("Loaded Blueprint Bundle 'default' for name");
verify(plugin).log("Loaded blueprint 'bedrock' for name");
return task; return task;
}}); }});
@ -267,8 +265,6 @@ public class BlueprintsManagerTest {
public BukkitTask answer(InvocationOnMock invocation) throws Throwable { public BukkitTask answer(InvocationOnMock invocation) throws Throwable {
invocation.getArgumentAt(1,Runnable.class).run(); invocation.getArgumentAt(1,Runnable.class).run();
verify(plugin).logError(eq("No blueprint bundles found! Creating a default one.")); 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; return task;
}}); }});
BlueprintsManager bpm = new BlueprintsManager(plugin); BlueprintsManager bpm = new BlueprintsManager(plugin);
@ -309,7 +305,6 @@ public class BlueprintsManagerTest {
@Override @Override
public BukkitTask answer(InvocationOnMock invocation) throws Throwable { public BukkitTask answer(InvocationOnMock invocation) throws Throwable {
invocation.getArgumentAt(1,Runnable.class).run(); invocation.getArgumentAt(1,Runnable.class).run();
verify(plugin, Mockito.times(2)).log("Loaded blueprint 'bedrock' for name");
return task; return task;
}}); }});
BlueprintsManager bpm = new BlueprintsManager(plugin); BlueprintsManager bpm = new BlueprintsManager(plugin);
@ -317,7 +312,7 @@ public class BlueprintsManagerTest {
bpm.loadBlueprintBundles(addon); bpm.loadBlueprintBundles(addon);
// Load them again // Load them again
bpm.loadBlueprints(addon); bpm.loadBlueprints(addon);
verify(plugin, Mockito.times(2)).log("Loaded blueprint 'bedrock' for name");
} }
/** /**