public void testSetProperties() { StaticPropertiesPropertySource source = new StaticPropertiesPropertySource(); Properties properties = new Properties(); properties.setProperty("property1", "value1"); source.setProperties(properties); BasePropertyValue value = new BasePropertyValue(); value.setPropertySource(source); value.setName("property1"); assertEquals("value1", value.getRawValue()); }
public void testNullProperties() throws Exception { StaticPropertiesPropertySource source = new StaticPropertiesPropertySource(); assertNull(source.getValue("property1")); }