Example #1
0
 @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());
 }
Example #2
0
 @After
 public void tearDown() throws Exception {
   userConfig.clearProperty("key1");
   userConfig.clearProperty("key2");
   test.close();
 }
Example #3
0
 private void addPropsToProjectConfig(Configuration projectConfig) {
   projectConfig.addProperty("key2", "projectValue2");
   projectConfig.addProperty("key3", "projectValue3");
 }
Example #4
0
 private void addPropsToUserConfig() {
   userConfig.setProperty("key1", "userValue1");
   userConfig.setProperty("key2", "userValue2");
 }