spigot: Fixup tests

This commit is contained in:
William committed 2023-09-30 15:58:56 +01:00
1 parent ce30d6e7a9
commit 95e9fd4b63
3 files changed
+3 -5

No files matched your search

@@ -77,9 +77,6 @@ public class BukkitPluginTests {
@Test
@DisplayName("Test Command Registration")
public void testCommandRegistration() {
for (BukkitCommand.Type command : BukkitCommand.Type.values()) {
Assertions.assertNotNull(plugin.getCommand(command.createCommand(plugin).getName()));
}
Assertions.assertEquals(BukkitCommand.Type.values().length, plugin.getCommands().size());
}
@@ -135,7 +132,7 @@ public class BukkitPluginTests {
@DisplayName("Test Locale Loading")
public void testLocalesLoading() {
final Map<String, String> rawLocales = plugin.getLocales().rawLocales;
Assertions.assertTrue(rawLocales.size() > 0);
Assertions.assertFalse(rawLocales.isEmpty());
rawLocales.forEach((key, value) -> Assertions.assertNotNull(value));
}