类 JobScopeTestUtils
- java.lang.Object
- org.springframework.batch.test.JobScopeTestUtils
public class JobScopeTestUtils extends java.lang.Object
Utility class for creating and manipulatingJobScope
in unit tests. This is useful when you want to use the Spring test support and inject dependencies into your test case that happen to be job scoped in the application context.- 作者:
- Dave Syer, Jimmy Praet
构造器概要
构造器 构造器 说明 JobScopeTestUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> T
doInJobScope(JobExecution jobExecution, java.util.concurrent.Callable<T> callable)
构造器详细资料
JobScopeTestUtils
public JobScopeTestUtils()
方法详细资料
doInJobScope
public static <T> T doInJobScope(JobExecution jobExecution, java.util.concurrent.Callable<T> callable) throws java.lang.Exception
- 抛出:
java.lang.Exception