Package org.springframework.batch.core.launch.support

Examples of org.springframework.batch.core.launch.support.SimpleJobLauncher.run()


        SimpleJobLauncher launcher = new SimpleJobLauncher();
        launcher.setJobRepository(new TestDummyJobRepository());
        launcher.afterPropertiesSet();

        Job job = new TestDummyJob("testRunJob");
        JobExecution execution = launcher.run(job, new JobParameters());
        assertNotNull("No job exectuion instance", execution);

        String jobName = job.getName();
        Operation op = assertOperationDetails(getFirstEntered(), "run", job.getName());
        assertOperationPath(op, jobName, null);
View Full Code Here


    step.afterPropertiesSet();
    job.addStep(step);
    job.setJobRepository(jobRepository);
    job.afterPropertiesSet();

    jobLauncher.run(job, new JobParametersBuilder().addString("test", getClass().getName()).toJobParameters());

    Thread.sleep(500L);
    JobExplorer explorer = new MapJobExplorerFactoryBean(repositoryFactory).getObject();
    Set<JobExecution> executions = explorer.findRunningJobExecutions("job");
    assertEquals(1, executions.size());
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.