1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Fixed unit test

This commit is contained in:
TheBusyBiscuit 2021-03-13 22:00:17 +01:00
parent fbd701bced
commit 2c2ba73500

View File

@ -37,7 +37,6 @@ class TestItemSettings {
SlimefunItem item = TestUtilities.mockSlimefunItem(plugin, "ITEM_SETTINGS_TEST", new CustomItem(Material.DIAMOND, "&cTest"));
item.register(plugin);
Assertions.assertThrows(IllegalArgumentException.class, () -> new ItemSetting<>(item, "prematureInvocation", "Hello world").getValue());
Assertions.assertThrows(IllegalArgumentException.class, () -> item.addItemSetting());
Assertions.assertThrows(IllegalArgumentException.class, () -> item.addItemSetting((ItemSetting<String>) null));
Assertions.assertThrows(UnsupportedOperationException.class, () -> item.addItemSetting(new ItemSetting<>(item, "test", "Hello World")));