builder.expectWarn(ServletValidator.generateMissingMappingMessage(
"org.test.NoMappings", "/no/mapping", "noMappings"), null);
UnitTestTreeLogger logger = builder.createLogger();
validator.validate(logger, "org.test.NoMappings", "/no/mapping");
logger.assertCorrectLogEntries();
}
public void testNoServlet() throws Exception {
ServletValidator validator = createValidator();
assertFalse(validator.containsServletClass("not.defined.Class"));