Fixed removing entries in the new Configuration (via set(x, null))

This commit is contained in:
Nathan Adams
2011-10-11 12:16:43 +01:00
parent a714349005
commit dc4ae80cfe
2 changed files with 13 additions and 1 deletions

View File

@@ -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