Package org.springframework.batch.test
Class StepScopeTestUtils
java.lang.Object
org.springframework.batch.test.StepScopeTestUtils
Utility class for creating and manipulating
StepScope
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.- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
doInStepScope
(StepExecution stepExecution, Callable<T> callable)
-
Constructor Details
-
StepScopeTestUtils
public StepScopeTestUtils()
-
-
Method Details
-
doInStepScope
public static <T> T doInStepScope(StepExecution stepExecution, Callable<T> callable) throws Exception - Throws:
Exception
-