Examples of StoppableTasklet


Examples of org.springframework.batch.core.step.tasklet.StoppableTasklet

  @Test
  public void testStopTasklet() throws Exception {
    JobInstance jobInstance = new JobInstance(123L, job.getName());
    JobExecution jobExecution = new JobExecution(jobInstance, 111L, jobParameters, null);
    StoppableTasklet tasklet = mock(StoppableTasklet.class);
    TaskletStep taskletStep = new TaskletStep();
    taskletStep.setTasklet(tasklet);
    MockJob job = new MockJob();
    job.taskletStep = taskletStep;
View Full Code Here

Examples of org.springframework.batch.core.step.tasklet.StoppableTasklet

  @Test
  public void testStopTaskletException() throws Exception {
    JobInstance jobInstance = new JobInstance(123L, job.getName());
    JobExecution jobExecution = new JobExecution(jobInstance, 111L, jobParameters, null);
    StoppableTasklet tasklet = new StoppableTasklet() {

      @Override
      public RepeatStatus execute(StepContribution contribution,
          ChunkContext chunkContext) throws Exception {
        return null;
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.