assertEquals("Unable to load XML module definition document from resource class path resource [xmlspec/notpresent.xml]", e.getMessage());
}
}
public final void testBadlyFormedLoadDocument() {
XMLModulelDefinitionDocumentLoader builder = new XMLModulelDefinitionDocumentLoader();
try {
builder.loadDocument(new ClassPathResource("xmlspec/badlyformedspec.xml"));
fail();
}
catch (ConfigurationException e) {
assertEquals("Unable to load XML module definition document from resource class path resource [xmlspec/badlyformedspec.xml]", e.getMessage());
}