Skip navigation links
A B C D E G J L M O P R S 

A

AbstractJobTests - Class in org.springframework.batch.test
Deprecated.
(from 2.1) use JobLauncherTestUtils instead
AbstractJobTests() - Constructor for class org.springframework.batch.test.AbstractJobTests
Deprecated.
 
afterPropertiesSet() - Method in class org.springframework.batch.test.DataSourceInitializer
 
afterPropertiesSet() - Method in class org.springframework.batch.test.JobRepositoryTestUtils
 
afterTestClass(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
 
afterTestClass(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
 
afterTestMethod(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
 
afterTestMethod(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
 
AssertFile - Class in org.springframework.batch.test
This class can be used to assert that two files are the same.
AssertFile() - Constructor for class org.springframework.batch.test.AssertFile
 
assertFileEquals(File, File) - Static method in class org.springframework.batch.test.AssertFile
 
assertFileEquals(Resource, Resource) - Static method in class org.springframework.batch.test.AssertFile
 
assertLineCount(int, File) - Static method in class org.springframework.batch.test.AssertFile
 
assertLineCount(int, Resource) - Static method in class org.springframework.batch.test.AssertFile
 

B

BatchTestContextCustomizer - Class in org.springframework.batch.test.context
ContextCustomizer implementation that adds batch test utility classes (JobLauncherTestUtils and JobRepositoryTestUtils) as beans in the test context.
BatchTestContextCustomizer() - Constructor for class org.springframework.batch.test.context.BatchTestContextCustomizer
 
BatchTestContextCustomizerFactory - Class in org.springframework.batch.test.context
BatchTestContextCustomizerFactory() - Constructor for class org.springframework.batch.test.context.BatchTestContextCustomizerFactory
 
beforeTestClass(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
 
beforeTestClass(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
 
beforeTestMethod(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
 
beforeTestMethod(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
 

C

createContextCustomizer(Class<?>, List<ContextConfigurationAttributes>) - Method in class org.springframework.batch.test.context.BatchTestContextCustomizerFactory
 
createJobExecution() - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with default parameters.
createJobExecution(Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with the parameters provided.
createJobExecution(String, Long, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with the parameters provided.
createJobExecution(String, Long, Long, String) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with the parameters provided.
createJobExecution(String, Long, Long, JobParameters) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with the parameters provided.
createJobExecutions(String, String[], int) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
Use the JobRepository to create some JobExecution instances each with the given job name and each having step executions with the given step names.
createJobExecutions(int) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
Use the JobRepository to create some JobExecution instances each with a single step execution.
createJobExecutionWithStepExecutions(Long, Collection<String>) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with the parameters provided with attached step executions.
createJobInstance(String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobInstance with the parameters provided.
createJobInstance() - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobInstance with default parameters.
createStepExecution() - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a StepExecution with default parameters.
createStepExecution(String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a StepExecution with the parameters provided.
createStepExecution(JobExecution, String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a StepExecution with the parameters provided.
createStepExecution(JobParameters, ExecutionContext) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a StepExecution and all its parent entities with default values, but using the ExecutionContext and JobParameters provided.
createStepExecution(JobParameters) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a StepExecution and all its parent entities with default values, but using the JobParameters provided.
createStepExecution(ExecutionContext) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a StepExecution and all its parent entities with default values, but using the ExecutionContext provided.
customizeContext(ConfigurableApplicationContext, MergedContextConfiguration) - Method in class org.springframework.batch.test.context.BatchTestContextCustomizer
 

D

DataSourceInitializer - Class in org.springframework.batch.test
Wrapper for a DataSource that can run scripts on start up and shut down.
DataSourceInitializer() - Constructor for class org.springframework.batch.test.DataSourceInitializer
 
DEFAULT_JOB_EXECUTION_ID - Static variable in class org.springframework.batch.test.MetaDataInstanceFactory
The default id for a job execution (123L)
DEFAULT_JOB_INSTANCE_ID - Static variable in class org.springframework.batch.test.MetaDataInstanceFactory
The default id for a job instance (12L)
DEFAULT_JOB_NAME - Static variable in class org.springframework.batch.test.MetaDataInstanceFactory
The default name for a job ("job")
DEFAULT_STEP_EXECUTION_ID - Static variable in class org.springframework.batch.test.MetaDataInstanceFactory
The default id for a step execution (1234L)
DEFAULT_STEP_NAME - Static variable in class org.springframework.batch.test.MetaDataInstanceFactory
The default name for a step ("step")
destroy() - Method in class org.springframework.batch.test.DataSourceInitializer
 
doInJobScope(JobExecution, Callable<T>) - Static method in class org.springframework.batch.test.JobScopeTestUtils
 
doInStepScope(StepExecution, Callable<T>) - Static method in class org.springframework.batch.test.StepScopeTestUtils
 

E

ExecutionContextTestUtils - Class in org.springframework.batch.test
Convenience class for accessing ExecutionContext values from job and step executions.
ExecutionContextTestUtils() - Constructor for class org.springframework.batch.test.ExecutionContextTestUtils
 

G

getApplicationContext() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
 
getJob() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
 
getJob() - Method in class org.springframework.batch.test.JobLauncherTestUtils
 
getJobExecution(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
Discover a JobExecution as a field in the test case or create one if none is available.
getJobLauncher() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
 
getJobLauncher() - Method in class org.springframework.batch.test.JobLauncherTestUtils
 
getJobRepository() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
 
getJobRepository() - Method in class org.springframework.batch.test.JobLauncherTestUtils
 
getMetric(StepExecution, Metric.MetricType) - Static method in class org.springframework.batch.test.JsrTestUtils
 
getStepExecution(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
Discover a StepExecution as a field in the test case or create one if none is available.
getStepRunner() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Convenient method for subclasses to grab a StepRunner for running steps by name.
getStepRunner() - Method in class org.springframework.batch.test.JobLauncherTestUtils
Convenient method for subclasses to grab a StepRunner for running steps by name.
getUniqueJobParameters() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
 
getUniqueJobParameters() - Method in class org.springframework.batch.test.JobLauncherTestUtils
 
getValueFromJob(JobExecution, String) - Static method in class org.springframework.batch.test.ExecutionContextTestUtils
 
getValueFromStep(StepExecution, String) - Static method in class org.springframework.batch.test.ExecutionContextTestUtils
 
getValueFromStepInJob(JobExecution, String, String) - Static method in class org.springframework.batch.test.ExecutionContextTestUtils
 

J

JobLauncherTestUtils - Class in org.springframework.batch.test
Utility class for testing batch jobs.
JobLauncherTestUtils() - Constructor for class org.springframework.batch.test.JobLauncherTestUtils
 
JobRepositoryTestUtils - Class in org.springframework.batch.test
Convenience class for creating and removing JobExecution instances from a database.
JobRepositoryTestUtils() - Constructor for class org.springframework.batch.test.JobRepositoryTestUtils
Default constructor.
JobRepositoryTestUtils(JobRepository, DataSource) - Constructor for class org.springframework.batch.test.JobRepositoryTestUtils
Create a JobRepositoryTestUtils with all its mandatory properties.
JobScopeTestExecutionListener - Class in org.springframework.batch.test
A TestExecutionListener that sets up job-scope context for dependency injection into unit tests.
JobScopeTestExecutionListener() - Constructor for class org.springframework.batch.test.JobScopeTestExecutionListener
 
JobScopeTestUtils - Class in org.springframework.batch.test
Utility class for creating and manipulating JobScope in unit tests.
JobScopeTestUtils() - Constructor for class org.springframework.batch.test.JobScopeTestUtils
 
JsrTestUtils - Class in org.springframework.batch.test
Provides testing utilities to execute JSR-352 jobs and block until they are complete (since all JSR-352 based jobs are executed asynchronously).

L

launchJob() - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Launch the entire job, including all steps.
launchJob(JobParameters) - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Launch the entire job, including all steps
launchJob() - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch the entire job, including all steps.
launchJob(JobParameters) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch the entire job, including all steps
launchStep(String) - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Launch just the specified step in the job.
launchStep(String, ExecutionContext) - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Launch just the specified step in the job.
launchStep(String, JobParameters) - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Launch just the specified step in the job.
launchStep(String, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Launch just the specified step in the job.
launchStep(String) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in the job.
launchStep(String, ExecutionContext) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in the job.
launchStep(String, JobParameters) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in the job.
launchStep(String, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in the job.
launchStep(Step) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step as its own job.
launchStep(Step, ExecutionContext) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step as its own job.
launchStep(Step, JobParameters) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step as its own job.
launchStep(Step, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step as its own job.
logger - Variable in class org.springframework.batch.test.AbstractJobTests
Deprecated.
Logger
logger - Variable in class org.springframework.batch.test.JobLauncherTestUtils
Logger
logger - Variable in class org.springframework.batch.test.StepRunner
Logger

M

main(String...) - Static method in class org.springframework.batch.test.DataSourceInitializer
Main method as convenient entry point.
MetaDataInstanceFactory - Class in org.springframework.batch.test
Convenience methods for creating test instances of JobExecution, JobInstance and StepExecution.
MetaDataInstanceFactory() - Constructor for class org.springframework.batch.test.MetaDataInstanceFactory
 

O

org.springframework.batch.test - package org.springframework.batch.test
Utility classes for batch job/step testing.
org.springframework.batch.test.context - package org.springframework.batch.test.context
APIs for the configuration of Spring Batch test support.

P

prepareTestInstance(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
Set up a JobExecution as a test context attribute.
prepareTestInstance(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
Set up a StepExecution as a test context attribute.

R

removeJobExecutions(Collection<JobExecution>) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
Remove the JobExecution instances, and all associated JobInstance and StepExecution instances from the standard RDBMS locations used by Spring Batch.
removeJobExecutions() - Method in class org.springframework.batch.test.JobRepositoryTestUtils
Remove all the JobExecution instances, and all associated JobInstance and StepExecution instances from the standard RDBMS locations used by Spring Batch.
restartJob(long, Properties, long) - Static method in class org.springframework.batch.test.JsrTestUtils
Restarts a job and waits for it's status to be any of BatchStatus.STOPPED, BatchStatus.COMPLETED, or BatchStatus.FAILED.
runJob(String, Properties, long) - Static method in class org.springframework.batch.test.JsrTestUtils
Executes a job and waits for it's status to be any of BatchStatus.STOPPED, BatchStatus.COMPLETED, or BatchStatus.FAILED.

S

setApplicationContext(ApplicationContext) - Method in class org.springframework.batch.test.AbstractJobTests
Deprecated.
setDataSource(DataSource) - Method in class org.springframework.batch.test.DataSourceInitializer
 
setDataSource(DataSource) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
 
setDestroyScripts(Resource[]) - Method in class org.springframework.batch.test.DataSourceInitializer
 
setIgnoreFailedDrop(boolean) - Method in class org.springframework.batch.test.DataSourceInitializer
 
setInitScripts(Resource[]) - Method in class org.springframework.batch.test.DataSourceInitializer
 
setJob(Job) - Method in class org.springframework.batch.test.JobLauncherTestUtils
The Job instance that can be manipulated (e.g.
setJobLauncher(JobLauncher) - Method in class org.springframework.batch.test.JobLauncherTestUtils
A JobLauncher instance that can be used to launch jobs.
setJobParametersIncrementer(JobParametersIncrementer) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
 
setJobRepository(JobRepository) - Method in class org.springframework.batch.test.JobLauncherTestUtils
The JobRepository to use for creating new JobExecution instances.
setJobRepository(JobRepository) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
 
SpringBatchTest - Annotation Type in org.springframework.batch.test.context
Annotation that can be specified on a test class that runs Spring Batch based tests.
StepRunner - Class in org.springframework.batch.test
Utility class for executing steps outside of a Job.
StepRunner(JobLauncher, JobRepository) - Constructor for class org.springframework.batch.test.StepRunner
 
StepScopeTestExecutionListener - Class in org.springframework.batch.test
A TestExecutionListener that sets up step-scope context for dependency injection into unit tests.
StepScopeTestExecutionListener() - Constructor for class org.springframework.batch.test.StepScopeTestExecutionListener
 
StepScopeTestUtils - Class in org.springframework.batch.test
Utility class for creating and manipulating StepScope in unit tests.
StepScopeTestUtils() - Constructor for class org.springframework.batch.test.StepScopeTestUtils
 
A B C D E G J L M O P R S 
Skip navigation links