Examples of SimpleFlow


Examples of org.springframework.batch.core.job.flow.support.SimpleFlow

    assertNull(job.getStep("step that does not exist"));
  }

  @Test
  public void testGetStepExistsWithPrefix() throws Exception {
    SimpleFlow flow = new SimpleFlow("job");
    List<StateTransition> transitions = new ArrayList<StateTransition>();
    transitions.add(StateTransition.createStateTransition(new StepState("job.step", new StubStep("step")), "end0"));
    transitions.add(StateTransition.createEndStateTransition(new EndState(FlowExecutionStatus.COMPLETED, "end0")));
    flow.setStateTransitions(transitions);
    flow.afterPropertiesSet();
    job.setFlow(flow);
    job.setName(flow.getName());
    job.afterPropertiesSet();

    Step step = job.getStep("step");
    assertNotNull(step);
    assertEquals("step", step.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.