类 StepScopeTestUtils


  • public class StepScopeTestUtils
    extends java.lang.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.
    作者:
    Dave Syer
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型方法说明
      static <T> TdoInStepScope​(StepExecution stepExecution, java.util.concurrent.Callable<T> callable) 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • doInStepScope

        public static <T> T doInStepScope​(StepExecution stepExecution,
                                          java.util.concurrent.Callable<T> callable)
                                   throws java.lang.Exception
        抛出:
        java.lang.Exception