" </servlet>",
"</web-app>");
assertThat(m_webElement.getChildren()).hasSize(1);
//
List<ServletElement> servletElements = m_webElement.getServletElements();
ServletElement servletElement = servletElements.get(0);
assertThat(servletElements).hasSize(1);
assertEquals("someName", servletElement.getName());
assertEquals("some.Class", servletElement.getClassName());
// set new "name" value
{
servletElement.setName("newName");
m_webContent = StringUtils.replace(m_webContent, "someName", "newName");
assertUpdatedModuleFile(m_webContent);
}
// set new "class" value
{
servletElement.setClassName("new.Class");
m_webContent = StringUtils.replace(m_webContent, "some.Class", "new.Class");
assertUpdatedModuleFile(m_webContent);
}
// toString()
assertEquals(