diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java b/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java index 6dab4779..cb818418 100644 --- a/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java +++ b/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java @@ -91,6 +91,18 @@ public abstract class ConfigurationSectionTest { assertTrue(section.contains("exists")); assertFalse(section.contains("doesnt-exist")); + + assertTrue(section.contains("exists", true)); + assertTrue(section.contains("exists", false)); + + assertFalse(section.contains("doesnt-exist", true)); + assertFalse(section.contains("doesnt-exist", false)); + + section.addDefault("doenst-exist-two", true); + section.set("doenst-exist-two", null); + + assertFalse(section.contains("doenst-exist-two", true)); + assertTrue(section.contains("doenst-exist-two", false)); } @Test |