/**
* Test method for {@link org.richfaces.test.staging.ServerResourcePath#ServerResourcePath(java.lang.String)}.
*/
@Test
public void testWebXmlPath() {
ServerResourcePath path = ServerResourcePath.WEB_XML;
assertFalse(path.isFile());
assertEquals("WEB-INF/", path.getNextElementName());
assertEquals("/WEB-INF/web.xml", path.toString());
path = path.getNextPath();
assertNotNull(path.getNextElementName());
assertFalse(path.isFile());
assertEquals("web.xml", path.getNextElementName());
assertEquals("/web.xml", path.toString());
path = path.getNextPath();
assertNotNull(path);
assertTrue(path.isFile());
path = path.getNextPath();
assertNull(path);
}