mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-23 16:23:50 -07:00
Fixed removing entries in the new Configuration (via set(x, null))
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -162,7 +162,15 @@ public abstract class ConfigurationSectionTest {
|
||||
ConfigurationSection section = getConfigurationSection();
|
||||
|
||||
section.set("exists", "hello world");
|
||||
|
||||
assertTrue(section.contains("exists"));
|
||||
assertTrue(section.isSet("exists"));
|
||||
assertEquals("hello world", section.get("exists"));
|
||||
|
||||
section.set("exists", null);
|
||||
|
||||
assertFalse(section.contains("exists"));
|
||||
assertFalse(section.isSet("exists"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user