BATCH-2045: Updated error message to identify that the XSD isn't compatable with the current version of Spring Batch

This commit is contained in:
Michael Minella
2014-02-28 13:36:43 -06:00
parent 4ff7ae84e2
commit 43d1b6eafb
2 changed files with 4 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ public class JobParserExceptionTests {
}
catch (BeanDefinitionParsingException e) {
String message = e.getMessage();
assertTrue("Wrong message: "+message, message.matches("(?s).*You cannot use spring-batch-2.0.xsd.*"));
assertTrue("Wrong message: "+message, message.startsWith("Configuration problem: You are using a version of the spring-batch XSD"));
} catch (BeanDefinitionStoreException e) {
// Probably the internet is not available and the schema validation failed.
fail("Wrong exception when schema didn't match: " + e.getMessage());