Compare commits
3 Commits
b756d06c0e
...
fba3e27a89
Author | SHA1 | Date |
---|---|---|
tastybento | fba3e27a89 | |
tastybento | 69a22e917e | |
tastybento | ffb955b22b |
|
@ -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 method for {@link world.bentobox.bentobox.hooks.MythicMobsHook#spawnMythicMob(world.bentobox.bentobox.blueprints.dataobjects.BlueprintEntity.MythicMobRecord, org.bukkit.Location)}.
|
||||||
*/
|
*/
|
||||||
@Test
|
@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);
|
MythicMobRecord mmr = hook.getMythicMob(entity);
|
||||||
assertTrue(hook.spawnMythicMob(mmr, location));
|
assertTrue(hook.spawnMythicMob(mmr, location));
|
||||||
verify(mm).getMythicMob("GIANT");
|
verify(mm).getMythicMob("GIANT");
|
||||||
|
|
Loading…
Reference in New Issue