"<module>",
" <extend-property name='some.name' values='some.values'/>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<extend-property>" element
ExtendPropertyElement propertyElement;
{
List<ExtendPropertyElement> propertyElements = m_module.getExtendPropertyElements();
assertThat(propertyElements).hasSize(1);
propertyElement = propertyElements.get(0);
}
// current attribute values
assertEquals("some.name", propertyElement.getName());
assertEquals("some.values", propertyElement.getValues());
// set new attribute value
{
propertyElement.setName("new.name");
propertyElement.setValues("new.values");
{
String newContent = m_moduleContent;
newContent = StringUtils.replace(newContent, "some.name", "new.name");
newContent = StringUtils.replace(newContent, "some.values", "new.values");
assertUpdatedModuleFile(newContent);