类 JobScopeTestUtils


  • public class JobScopeTestUtils
    extends java.lang.Object
    Utility class for creating and manipulating JobScope 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 job scoped in the application context.
    作者:
    Dave Syer, Jimmy Praet
    • 方法概要

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

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

      • doInJobScope

        public static <T> T doInJobScope​(JobExecution jobExecution,
                                         java.util.concurrent.Callable<T> callable)
                                  throws java.lang.Exception
        抛出:
        java.lang.Exception