mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-13 19:01:28 +01:00
Fix tests
This commit is contained in:
parent
83479ac8a4
commit
38551a138a
@ -77,7 +77,7 @@ public class PlaceholdersManagerTest {
|
||||
public void testRegisterGameModePlaceholdersAllDefaults() {
|
||||
pm.registerDefaultPlaceholders(addon);
|
||||
// + 300 because we register team member placeholders up to 50 members
|
||||
verify(hook, times(GameModePlaceholder.values().length + 300)).registerPlaceholder(any(), anyString(), any());
|
||||
verify(hook, times(GameModePlaceholder.values().length + 302)).registerPlaceholder(any(), anyString(), any());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -91,6 +91,7 @@ public class PlaceholdersManagerTest {
|
||||
pm.registerDefaultPlaceholders(addon);
|
||||
|
||||
// 3 less registrations for this addon
|
||||
verify(hook, times(GameModePlaceholder.values().length - 3 + 300)).registerPlaceholder(any(), anyString(), any());
|
||||
verify(hook, times(GameModePlaceholder.values().length - 3 + 302)).registerPlaceholder(any(), anyString(),
|
||||
any());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user