diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/AbstractStepParserTest.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTest.java similarity index 86% rename from spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/AbstractStepParserTest.java rename to spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTest.java index f5381cc3b..6a1318f25 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/AbstractStepParserTest.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTest.java @@ -8,12 +8,14 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.batch.core.step.AbstractStep; import org.springframework.context.ApplicationContext; +import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +@DirtiesContext @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration -public class AbstractStepParserTest { +public class TaskletStepAllowStartIfCompleteTest { @Resource private ApplicationContext context; diff --git a/spring-batch-core/src/test/resources/org/springframework/batch/core/configuration/xml/AbstractStepParserTest-context.xml b/spring-batch-core/src/test/resources/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTest-context.xml similarity index 100% rename from spring-batch-core/src/test/resources/org/springframework/batch/core/configuration/xml/AbstractStepParserTest-context.xml rename to spring-batch-core/src/test/resources/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTest-context.xml