Package org.springframework.batch.test
Class ExecutionContextTestUtils
java.lang.Object
org.springframework.batch.test.ExecutionContextTestUtils
Convenience class for accessing
ExecutionContext
values from job and step
executions.- Since:
- 2.1.4
- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getValueFromJob
(JobExecution jobExecution, String key) static <T> T
getValueFromStep
(StepExecution stepExecution, String key) static <T> T
getValueFromStepInJob
(JobExecution jobExecution, String stepName, String key)
-
Constructor Details
-
ExecutionContextTestUtils
public ExecutionContextTestUtils()
-
-
Method Details
-
getValueFromJob
-
getValueFromStepInJob
@Nullable public static <T> T getValueFromStepInJob(JobExecution jobExecution, String stepName, String key) -
getValueFromStep
-