Package org.springframework.batch.test
Class JobScopeTestUtils
java.lang.Object
org.springframework.batch.test.JobScopeTestUtils
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.- Author:
- Dave Syer, Jimmy Praet, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
doInJobScope
(JobExecution jobExecution, Callable<T> callable)
-
Constructor Details
-
JobScopeTestUtils
public JobScopeTestUtils()
-
-
Method Details
-
doInJobScope
- Throws:
Exception
-