George Gastaldi created FORGE-2241:
--------------------------------------
Summary: Configuration.clearProperty() does not work for multilevel subsets
Key: FORGE-2241
URL:
https://issues.jboss.org/browse/FORGE-2241
Project: Forge
Issue Type: Bug
Components: Configuration
Affects Versions: 2.14.0.Final
Reporter: George Gastaldi
Fix For: 2.x Future
Having:
{code}
@Inject
Configuration config;
@Inject
@Subset("subset.subset")
private Configuration subSubsetConfiguration;
{code}
The following test should pass:
{code}
@Test
public void testSubSubsetConfigurationClearProperty() throws Exception
{
configuration.clear();
configuration.setProperty("subset.subset.A", "Value");
assertTrue(subSubsetConfiguration.getKeys().hasNext());
subSubsetConfiguration.clearProperty("A");
assertFalse(subSubsetConfiguration.getKeys().hasNext());
assertFalse(configuration.getKeys().hasNext());
}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)