当前位置: 首页>>代码示例>>Java>>正文


Java JobLauncherTestUtils类代码示例

本文整理汇总了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;
}
 
开发者ID:oasp,项目名称:oasp-tutorial-sources,代码行数:13,代码来源:AbstractSpringBatchIntegrationTest.java

示例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();
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:11,代码来源:AlarmJobTest.java

示例3: jobLauncherTestUtils

import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
    return new JobLauncherTestUtils();
}
 
开发者ID:asaen,项目名称:spring-batch-article,代码行数:5,代码来源:BatchTestConfiguration.java

示例4: jobLauncherTestUtils

import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
	return new JobLauncherTestUtils();
}
 
开发者ID:maenu,项目名称:kowalski,代码行数:5,代码来源:TestConfiguration.java

示例5: getJobLauncherTestUtils

import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
public JobLauncherTestUtils getJobLauncherTestUtils() {
    return jobLauncherTestUtils;
}
 
开发者ID:marklogic-community,项目名称:marklogic-spring-batch,代码行数:4,代码来源:AbstractJobRunnerTest.java

示例6: setJobLauncherTestUtils

import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Autowired
public void setJobLauncherTestUtils(JobLauncherTestUtils jobLauncherTestUtils) {
    this.jobLauncherTestUtils = jobLauncherTestUtils;
}
 
开发者ID:marklogic-community,项目名称:marklogic-spring-batch,代码行数:5,代码来源:AbstractJobRunnerTest.java

示例7: jobLauncherTestUtils

import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
public JobLauncherTestUtils jobLauncherTestUtils() {
    return new JobLauncherTestUtils();

}
 
开发者ID:marklogic-community,项目名称:marklogic-spring-batch,代码行数:6,代码来源:JobRunnerContext.java

示例8: jobLauncherTestUtils

import org.springframework.batch.test.JobLauncherTestUtils; //导入依赖的package包/类
@Bean
   public JobLauncherTestUtils jobLauncherTestUtils() {
return new JobLauncherTestUtils();
   }
 
开发者ID:trein,项目名称:gtfs-java,代码行数:5,代码来源:EtlTestConfig.java


注:本文中的org.springframework.batch.test.JobLauncherTestUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。