本文整理汇总了Java中org.springframework.batch.test.JobLauncherTestUtils类的典型用法代码示例。如果您正苦于以下问题:Java JobLauncherTestUtils类的具体用法?Java JobLauncherTestUtils怎么用?Java JobLauncherTestUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JobLauncherTestUtils类属于org.springframework.batch.test包,在下文中一共展示了JobLauncherTestUtils类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getJobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
/**
* @param job job to configure
* @return jobLauncherTestUtils
*/
public JobLauncherTestUtils getJobLauncherTestUtils(Job job) {
JobLauncherTestUtils jobLauncherTestUtils = new JobLauncherTestUtils();
jobLauncherTestUtils.setJob(job);
jobLauncherTestUtils.setJobLauncher(this.jobLauncher);
return jobLauncherTestUtils;
}
示例2: main
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
public static void main(String[] args) throws Exception{
GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext("/applicationContext-test.xml");
JobLauncherTestUtils testLauncher = applicationContext.getBean(JobLauncherTestUtils.class);
JobExecution jobExecution = testLauncher.launchJob(getParameters());
BatchStatus status = jobExecution.getStatus();
assertEquals(BatchStatus.COMPLETED, status);
applicationContext.close();
}
示例3: jobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
return new JobLauncherTestUtils();
}
示例4: jobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
return new JobLauncherTestUtils();
}
示例5: getJobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
public JobLauncherTestUtils getJobLauncherTestUtils() {
return jobLauncherTestUtils;
}
示例6: setJobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Autowired
public void setJobLauncherTestUtils(JobLauncherTestUtils jobLauncherTestUtils) {
this.jobLauncherTestUtils = jobLauncherTestUtils;
}
示例7: jobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
return new JobLauncherTestUtils();
}
示例8: jobLauncherTestUtils
import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
return new JobLauncherTestUtils();
}