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:
parent
fbd701bced
commit
2c2ba73500
@ -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")));
|
||||
|
Loading…
Reference in New Issue
Block a user