"<module>",
" <script src='some.url'/>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<script>" element
ScriptElement scriptElement;
{
List<ScriptElement> scriptElements = m_module.getScriptElements();
assertThat(scriptElements).hasSize(1);
scriptElement = scriptElements.get(0);
}
// current "src" value
assertEquals("some.url", scriptElement.getSrc());
// set new "src" value
{
scriptElement.setSrc("new.url");
assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.url", "new.url"));
}
}