///////////////////////////// Tests ////////////////////////////
////////////////////////////////////////////////////////////////
@Test
public void testWebXmlParserForContextClass() {
ProjectDirectory directory = new ProjectDirectory(new File(TestConstants.getFolderName("spring-mvc-ajax")));
ServletMappings mappings = WebXMLParser.getServletMappings(directory.findWebXML(), directory);
for (ClassMapping classMapping : mappings.getClassMappings()) {
if (classMapping.getClassWithPackage().equals(SpringServletConfigurationChecker.DISPATCHER_SERVLET)) {
assertTrue("missing context class", "org.springframework.web.context.support.AnnotationConfigWebApplicationContext".equals(classMapping.getContextClass()));
assertTrue("missing context location", "com.codetutr.springconfig".equals(classMapping.getContextConfigLocation()));
}