@Test public void testSubSubsetConfigurationClearProperty() throws Exception { userConfig.clear(); userConfig.setProperty("subset.subset.A", "Value"); assertTrue(subSubsetConfiguration.getKeys().hasNext()); subSubsetConfiguration.clearProperty("A"); assertFalse(subSubsetConfiguration.getKeys().hasNext()); assertFalse(userConfig.getKeys().hasNext()); }
@After public void tearDown() throws Exception { userConfig.clearProperty("key1"); userConfig.clearProperty("key2"); test.close(); }
private void addPropsToProjectConfig(Configuration projectConfig) { projectConfig.addProperty("key2", "projectValue2"); projectConfig.addProperty("key3", "projectValue3"); }
private void addPropsToUserConfig() { userConfig.setProperty("key1", "userValue1"); userConfig.setProperty("key2", "userValue2"); }