diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepNameTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepNameTests.java index a161273a7..a23334243 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepNameTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepNameTests.java @@ -46,7 +46,7 @@ public class StepNameTests { public StepNameTests(Resource resource) throws Exception { try { - context = new FileSystemXmlApplicationContext("file://"+resource.getFile().getAbsolutePath()); + context = new FileSystemXmlApplicationContext("file:///"+resource.getFile().getAbsolutePath()); } catch (BeanDefinitionParsingException e) { return; } catch (BeanCreationException e) { @@ -71,12 +71,15 @@ public class StepNameTests { } @Parameters - public static List data() { + public static List data() throws Exception { List list = new ArrayList(); ResourceArrayPropertyEditor editor = new ResourceArrayPropertyEditor(); editor.setAsText("classpath*:"+ClassUtils.addResourcePathToPackagePath(StepNameTests.class, "*.xml")); Resource[] resources = (Resource[]) editor.getValue(); for (Resource resource : resources) { + if (resource.getFile().getName().contains("WrongSchema")) { + continue; + } list.add(new Object[] {resource}); } return list;