mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 11:15:24 +01:00
Fixes tests, removes debug.
This commit is contained in:
parent
f4c6701383
commit
2403cd201f
@ -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(
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user