org.springframework.batch.test
Class StepScopeTestUtils
java.lang.Object
org.springframework.batch.test.StepScopeTestUtils
public class StepScopeTestUtils
- extends Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepScopeTestUtils
public StepScopeTestUtils()
doInStepScope
public static <T> T doInStepScope(StepExecution stepExecution,
Callable<T> callable)
throws Exception
- Throws:
Exception
Copyright © 2013 SpringSource. All Rights Reserved.