"<module>",
" <stylesheet src='some.src'/>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<stylesheet >" element
StylesheetElement stylesheetElement;
{
List<StylesheetElement> stylesheetElements = m_module.getStylesheetElements();
assertThat(stylesheetElements).hasSize(1);
stylesheetElement = stylesheetElements.get(0);
}
// current "src" value
assertEquals("some.src", stylesheetElement.getSrc());
// set new "src" value
{
stylesheetElement.setSrc("new.src");
assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.src", "new.src"));
}
}