" <welcome-file>MyFile.html</welcome-file>",
" </welcome-file-list>",
"</web-app>");
assertThat(m_webElement.getChildren()).hasSize(1);
// prepare WelcomeFileListElement
WelcomeFileListElement welcomeFileListElement;
{
List<WelcomeFileListElement> welcomeListElements = m_webElement.getWelcomeFileListElements();
assertThat(welcomeListElements).hasSize(1);
welcomeFileListElement = welcomeListElements.get(0);
}
// prepare WelcomeFileElement
WelcomeFileElement welcomeFile;
{
List<WelcomeFileElement> welcomeFiles = welcomeFileListElement.getWelcomeFiles();
assertThat(welcomeFiles).hasSize(1);
welcomeFile = welcomeFiles.get(0);
}
// initial state
assertEquals("MyFile.html", welcomeFile.getName());