|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.batch.test.StepScopeTestUtils
public class 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.
| Constructor Summary | |
|---|---|
StepScopeTestUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
doInStepScope(StepExecution stepExecution,
java.util.concurrent.Callable<T> callable)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StepScopeTestUtils()
| Method Detail |
|---|
public static <T> T doInStepScope(StepExecution stepExecution,
java.util.concurrent.Callable<T> callable)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||