"<module>",
" <entry-point class='some.class'/>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<entry-point>" element
EntryPointElement entryPointElement;
{
List<EntryPointElement> entryPointElements = m_module.getEntryPointElements();
assertThat(entryPointElements).hasSize(1);
entryPointElement = entryPointElements.get(0);
}
// current "class" value
assertEquals("some.class", entryPointElement.getClassName());
// set new "class" value
{
entryPointElement.setClassName("new.class");
assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.class", "new.class"));
}
// toString()
assertEquals(
getSourceDQ("<module>", " <entry-point class='new.class'/>", "</module>"),