assertEquals("/module2", mapping.getPrefix());
assertNull(mapping.getExtension());
}
public void testParseMappingsPrefixExtension() throws ServletException {
ControlModuleMappings mappings =
new ControlModuleMappings(getClass().getResourceAsStream("web.xml"));
List list = mappings.getMappings("module3");
assertEquals(2, list.size());
ControlModuleMapping mapping1 = (ControlModuleMapping)list.get(0);
ControlModuleMapping mapping2 = (ControlModuleMapping)list.get(1);
assertEquals("/module3", mapping1.getPrefix());
assertNull(mapping1.getExtension());