public class JobScopeTestUtils
extends java.lang.Object
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.Constructor and Description |
---|
JobScopeTestUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
doInJobScope(JobExecution jobExecution,
java.util.concurrent.Callable<T> callable) |
public static <T> T doInJobScope(JobExecution jobExecution, java.util.concurrent.Callable<T> callable) throws java.lang.Exception
java.lang.Exception