} else { return config.getProperty(container, property.toString());
} else { return config.getProperty(container, property.toString());
} else { return config.getProperty(container, property.toString());
} else { return config.getProperty(container, property.toString());
} else { return config.getProperty(container, property.toString());
@Test public void testNulledPropertiesRemainNulledAfterSeveralTransactions() throws Exception { Map<String, Object> defaultContainer = makeContainer("default", "o1", "v1", "o2", "v2", "o3", "v3"); Map<String, Object> parentContainer = makeContainer("parent", "o3", null); Map<String, Object> childContainer = makeContainer("child", "parent", "parent", "o2", null); config.newTransaction().addContainer(defaultContainer).commit(); config.newTransaction().addContainer(parentContainer).commit(); config.newTransaction().addContainer(childContainer).commit(); assertNull(config.getProperty("child", "o2")); assertNull(config.getProperty("child", "o3")); assertNull(config.getProperty("parent", "o3")); }
@Test public void testNulledPropertiesRemainNulledAfterSeveralTransactions() throws Exception { Map<String, Object> defaultContainer = makeContainer("default", "o1", "v1", "o2", "v2", "o3", "v3"); Map<String, Object> parentContainer = makeContainer("parent", "o3", null); Map<String, Object> childContainer = makeContainer("child", "parent", "parent", "o2", null); config.newTransaction().addContainer(defaultContainer).commit(); config.newTransaction().addContainer(parentContainer).commit(); config.newTransaction().addContainer(childContainer).commit(); assertNull(config.getProperty("child", "o2")); assertNull(config.getProperty("child", "o3")); assertNull(config.getProperty("parent", "o3")); }
@Test public void testNulledPropertiesRemainNulledAfterSeveralTransactions() throws Exception { Map<String, Object> defaultContainer = makeContainer("default", "o1", "v1", "o2", "v2", "o3", "v3"); Map<String, Object> parentContainer = makeContainer("parent", "o3", null); Map<String, Object> childContainer = makeContainer("child", "parent", "parent", "o2", null); config.newTransaction().addContainer(defaultContainer).commit(); config.newTransaction().addContainer(parentContainer).commit(); config.newTransaction().addContainer(childContainer).commit(); assertNull(config.getProperty("child", "o2")); assertNull(config.getProperty("child", "o3")); assertNull(config.getProperty("parent", "o3")); }