diff --git a/spring-batch-core/.springBeans b/spring-batch-core/.springBeans index a61ae3350..ab3958a78 100644 --- a/spring-batch-core/.springBeans +++ b/spring-batch-core/.springBeans @@ -1,7 +1,7 @@ 1 - + @@ -43,12 +43,8 @@ src/test/resources/org/springframework/batch/core/configuration/xml/StepWithSimpleTaskJobParserTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/StopJobParserTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/EndTransitionJobParserTests-context.xml - src/test/resources/org/springframework/batch/core/configuration/xml/NextAttributeMultipleFinalJobParserTests-context.xml - src/test/resources/org/springframework/batch/core/configuration/xml/StepParserBadRetryListenerTests-context.xml - src/test/resources/org/springframework/batch/core/configuration/xml/StepParserBadStepListenerTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/DefaultFailureJobParserTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/DefaultSuccessJobParserTests-context.xml - src/test/resources/org/springframework/batch/core/configuration/xml/DuplicateTransitionJobParserTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/EndTransitionDefaultStatusJobParserTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/FailTransitionDefaultStatusJobParserTests-context.xml src/test/resources/org/springframework/batch/core/configuration/xml/FailTransitionJobParserTests-context.xml diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepParserTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepParserTests.java index 90e3266ca..027e18344 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepParserTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/StepParserTests.java @@ -31,9 +31,11 @@ import org.springframework.batch.core.step.tasklet.TaskletStep; import org.springframework.batch.repeat.CompletionPolicy; import org.springframework.batch.repeat.policy.SimpleCompletionPolicy; import org.springframework.beans.factory.parsing.BeanDefinitionParsingException; +import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.context.ApplicationContext; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; +import org.springframework.core.io.ClassPathResource; import org.springframework.test.util.ReflectionTestUtils; import org.springframework.transaction.TransactionDefinition; import org.springframework.transaction.interceptor.RollbackRuleAttribute; @@ -123,7 +125,7 @@ public class StepParserTests { private void loadContextWithBadListener(String contextLocation) { try { - new ClassPathXmlApplicationContext(contextLocation); + new XmlBeanFactory(new ClassPathResource(contextLocation)); fail("Context should not load!"); } catch (BeanDefinitionParsingException e) { assertTrue(e.getMessage().contains("'ref' and 'class'")); diff --git a/spring-batch-core/src/test/resources/org/springframework/batch/core/repository/support/SimpleJobRepositoryProxyTests-context.xml b/spring-batch-core/src/test/resources/org/springframework/batch/core/repository/support/SimpleJobRepositoryProxyTests-context.xml index b08e39fd1..df6ac440c 100644 --- a/spring-batch-core/src/test/resources/org/springframework/batch/core/repository/support/SimpleJobRepositoryProxyTests-context.xml +++ b/spring-batch-core/src/test/resources/org/springframework/batch/core/repository/support/SimpleJobRepositoryProxyTests-context.xml @@ -1,21 +1,21 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + \ No newline at end of file