public class StepScopeTestUtils
extends java.lang.Object
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.Constructor and Description |
---|
StepScopeTestUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
doInStepScope(StepExecution stepExecution,
java.util.concurrent.Callable<T> callable) |
public static <T> T doInStepScope(StepExecution stepExecution, java.util.concurrent.Callable<T> callable) throws java.lang.Exception
java.lang.Exception