org.springframework.batch.test
Class ExecutionContextTestUtils

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

public class ExecutionContextTestUtils
extends Object

Convenience class for accessing ExecutionContext values from job and step executions.

Since:
2.1.4
Author:
Dave Syer

Constructor Summary
ExecutionContextTestUtils()
           
 
Method Summary
static
<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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContextTestUtils

public ExecutionContextTestUtils()
Method Detail

getValueFromJob

public static <T> T getValueFromJob(JobExecution jobExecution,
                                    String key)

getValueFromStepInJob

public static <T> T getValueFromStepInJob(JobExecution jobExecution,
                                          String stepName,
                                          String key)

getValueFromStep

public static <T> T getValueFromStep(StepExecution stepExecution,
                                     String key)


Copyright © 2013 SpringSource. All Rights Reserved.