RESOLVED - issue BATCH-1363: Job stopped in split state does not finish with status = STOPPED

Add some more test cases
This commit is contained in:
dsyer
2009-08-14 07:03:52 +00:00
parent 7d4e7c0c2a
commit 0bf64b4a80
4 changed files with 194 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<import resource="common-context.xml" />
<job id="job" xmlns="http://www.springframework.org/schema/batch">
<split id="split1" task-executor="taskExecutor">
<flow>
<step id="stop" parent="interruptibleStep" />
</flow>
<flow>
<step id="s1" parent="step1" />
</flow>
</split>
</job>
<!-- Can't use async with Map JobRepository -->
<bean id="taskExecutor" class="org.springframework.core.task.SyncTaskExecutor" />
<bean id="interruptibleStep" parent="step1">
<property name="tasklet">
<bean
class="org.springframework.batch.core.configuration.xml.InterruptibleTasklet">
<property name="stepNamesList" ref="stepNamesList" />
</bean>
</property>
</bean>
</beans>