BATCH-2282: SplitBuilder shouldn't add empty state in flow
This commit is contained in:
committed by
Michael Minella
parent
d7fe0ab8ed
commit
ffc896ebbc
@@ -139,6 +139,17 @@ public class FlowJobBuilderTests {
|
||||
assertEquals(2, execution.getStepExecutions().size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBuildSplit_BATCH_2282() throws Exception {
|
||||
Flow flow1 = new FlowBuilder<Flow>("subflow1").from(step1).end();
|
||||
Flow flow2 = new FlowBuilder<Flow>("subflow2").from(step2).end();
|
||||
Flow splitFlow = new FlowBuilder<Flow>("splitflow").split(new SimpleAsyncTaskExecutor()).add(flow1, flow2).build();
|
||||
FlowJobBuilder builder = new JobBuilder("flow").repository(jobRepository).start(splitFlow).end();
|
||||
builder.preventRestart().build().execute(execution);
|
||||
assertEquals(BatchStatus.COMPLETED, execution.getStatus());
|
||||
assertEquals(2, execution.getStepExecutions().size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBuildDecision() throws Exception {
|
||||
JobExecutionDecider decider = new JobExecutionDecider() {
|
||||
|
||||
Reference in New Issue
Block a user