mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 02:35:21 +01:00
Fix MythicMobs test
This commit is contained in:
parent
ffb955b22b
commit
69a22e917e
@ -156,7 +156,17 @@ public class MythicMobsHookTest {
|
||||
* Test method for {@link world.bentobox.bentobox.hooks.MythicMobsHook#spawnMythicMob(world.bentobox.bentobox.blueprints.dataobjects.BlueprintEntity.MythicMobRecord, org.bukkit.Location)}.
|
||||
*/
|
||||
@Test
|
||||
public void testSpawnMythicMob() {
|
||||
public void testSpawnMythicMobNoPLugin() {
|
||||
MythicMobRecord mmr = hook.getMythicMob(entity);
|
||||
assertFalse(hook.spawnMythicMob(mmr, location));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link world.bentobox.bentobox.hooks.MythicMobsHook#spawnMythicMob(world.bentobox.bentobox.blueprints.dataobjects.BlueprintEntity.MythicMobRecord, org.bukkit.Location)}.
|
||||
*/
|
||||
@Test
|
||||
public void testSpawnMythicMobHasPlugin() {
|
||||
when(mythicMobs.isEnabled()).thenReturn(true);
|
||||
MythicMobRecord mmr = hook.getMythicMob(entity);
|
||||
assertTrue(hook.spawnMythicMob(mmr, location));
|
||||
verify(mm).getMythicMob("GIANT");
|
||||
|
Loading…
Reference in New Issue
Block a user