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());
// set new "name" value
{
welcomeFile.setName("newName.html");
assertEquals("newName.html", welcomeFile.getName());
m_webContent = StringUtils.replace(m_webContent, "MyFile", "newName");
assertUpdatedModuleFile(m_webContent);
}
// toString()
assertEquals(