Class ExecutionContextTestUtils

java.lang.Object
org.springframework.batch.test.ExecutionContextTestUtils

public abstract class ExecutionContextTestUtils extends Object
Convenience class for accessing ExecutionContext values from job and step executions.
Since:
2.1.4
Author:
Dave Syer, Mahmoud Ben Hassine, Taeik Lim
  • Method Details

    • getValueFromJob

      public static <T> @Nullable T getValueFromJob(org.springframework.batch.core.job.JobExecution jobExecution, String key)
    • getValueFromStepInJob

      public static <T> @Nullable T getValueFromStepInJob(org.springframework.batch.core.job.JobExecution jobExecution, String stepName, String key)
    • getValueFromStep

      public static <T> @Nullable T getValueFromStep(org.springframework.batch.core.step.StepExecution stepExecution, String key)