"<module>",
" <public path='some.path'/>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<public>" element
PublicElement publicElement;
{
List<PublicElement> publicElements = m_module.getPublicElements();
assertThat(publicElements).hasSize(1);
publicElement = publicElements.get(0);
}
// current "path" value
assertEquals("some.path", publicElement.getPath());
// set new "path" value
{
publicElement.setPath("new.path");
assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.path", "new.path"));
}
}