org.springframework.batch.test
Class StepScopeTestUtils

java.lang.Object
  extended by 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

Constructor Summary
StepScopeTestUtils()
           
 
Method Summary
static
<T> T
doInStepScope(StepExecution stepExecution, Callable<T> callable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepScopeTestUtils

public StepScopeTestUtils()
Method Detail

doInStepScope

public static <T> T doInStepScope(StepExecution stepExecution,
                                  Callable<T> callable)
                       throws Exception
Throws:
Exception


Copyright © 2013 SpringSource. All Rights Reserved.