Package org.springframework.batch.core.configuration

Examples of org.springframework.batch.core.configuration.JobRegistry


    TaskletStep taskletStep = new TaskletStep();
    taskletStep.setTasklet(tasklet);
    MockJob job = new MockJob();
    job.taskletStep = taskletStep;

    JobRegistry jobRegistry = mock(JobRegistry.class);
    TaskletStep step = mock(TaskletStep.class);

    when(step.getTasklet()).thenReturn(tasklet);
    when(step.getName()).thenReturn("test_job.step1");
    when(jobRegistry.getJob(anyString())).thenReturn(job);
    when(jobExplorer.getJobExecution(111L)).thenReturn(jobExecution);

    jobOperator.setJobRegistry(jobRegistry);
    jobExplorer.getJobExecution(111L);
    jobRepository.update(jobExecution);
View Full Code Here


      TaskletStep taskletStep = new TaskletStep();
      taskletStep.setTasklet(tasklet);
      MockJob job = new MockJob();
      job.taskletStep = taskletStep;

      JobRegistry jobRegistry = mock(JobRegistry.class);
      TaskletStep step = mock(TaskletStep.class);

      when(step.getTasklet()).thenReturn(tasklet);
      when(step.getName()).thenReturn("test_job.step1");
      when(jobRegistry.getJob(anyString())).thenReturn(job);
      when(jobExplorer.getJobExecution(111L)).thenReturn(jobExecution);

      jobOperator.setJobRegistry(jobRegistry);
      jobExplorer.getJobExecution(111L);
      jobRepository.update(jobExecution);
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.configuration.JobRegistry

Copyright © 2018 www.massapicom. 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.