"<module>",
" <set-property-fallback name='some.name' value='some.value'/>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<set-property-fallback>" element
SetPropertyFallbackElement element;
{
List<SetPropertyFallbackElement> elements = m_module.getSetPropertyFallbackElements();
assertThat(elements).hasSize(1);
element = elements.get(0);
}
// current attribute values
assertEquals("some.name", element.getName());
assertEquals("some.value", element.getValue());
// set new attribute value
{
element.setName("new.name");
element.setValue("new.value");
{
String newContent = m_moduleContent;
newContent = StringUtils.replace(newContent, "some.name", "new.name");
newContent = StringUtils.replace(newContent, "some.value", "new.value");
assertUpdatedModuleFile(newContent);