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