mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 13:45:14 +01:00
Fix tests
This commit is contained in:
parent
afe07a8c23
commit
ac9aa91532
@ -52,6 +52,7 @@ import world.bentobox.bentobox.api.addons.GameModeAddon;
|
||||
import world.bentobox.bentobox.api.user.User;
|
||||
import world.bentobox.bentobox.database.objects.Island;
|
||||
import world.bentobox.bentobox.database.objects.Players;
|
||||
import world.bentobox.bentobox.managers.AddonsManager;
|
||||
import world.bentobox.bentobox.managers.IslandWorldManager;
|
||||
import world.bentobox.bentobox.managers.IslandsManager;
|
||||
import world.bentobox.bentobox.managers.LocalesManager;
|
||||
@ -107,6 +108,9 @@ public class JoinLeaveListenerTest {
|
||||
@Mock
|
||||
private @NonNull Location location;
|
||||
|
||||
@Mock
|
||||
private AddonsManager am;
|
||||
|
||||
/**
|
||||
*/
|
||||
@Before
|
||||
@ -218,6 +222,9 @@ public class JoinLeaveListenerTest {
|
||||
when(phm.replacePlaceholders(any(), anyString()))
|
||||
.thenAnswer((Answer<String>) invocation -> invocation.getArgument(1, String.class));
|
||||
|
||||
// Addons manager
|
||||
when(plugin.getAddonsManager()).thenReturn(am);
|
||||
|
||||
jll = new JoinLeaveListener(plugin);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user