类 StepScopeTestUtils
- java.lang.Object
- org.springframework.batch.test.StepScopeTestUtils
public class StepScopeTestUtils extends java.lang.Object
Utility class for creating and manipulatingStepScope
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 step scoped in the application context.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 StepScopeTestUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> T
doInStepScope(StepExecution stepExecution, java.util.concurrent.Callable<T> callable)
构造器详细资料
StepScopeTestUtils
public StepScopeTestUtils()
方法详细资料
doInStepScope
public static <T> T doInStepScope(StepExecution stepExecution, java.util.concurrent.Callable<T> callable) throws java.lang.Exception
- 抛出:
java.lang.Exception