Index

A B C D E G H J L M O P R S 
All Classes and Interfaces|All Packages|Constant Field Values

A

afterPropertiesSet() - Method in class org.springframework.batch.test.DataSourceInitializer
Deprecated.
 
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
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 (for removal in 5.2) in favor of test utilities provided by modern test libraries like JUnit 5, AssertJ, etc.
AssertFile() - Constructor for class org.springframework.batch.test.AssertFile
Deprecated.
 
assertFileEquals(File, File) - Static method in class org.springframework.batch.test.AssertFile
Deprecated.
 
assertFileEquals(Resource, Resource) - Static method in class org.springframework.batch.test.AssertFile
Deprecated.
 
assertLineCount(int, File) - Static method in class org.springframework.batch.test.AssertFile
Deprecated.
 
assertLineCount(int, Resource) - Static method in class org.springframework.batch.test.AssertFile
Deprecated.
 

B

BatchTestContextBeanPostProcessor - Class in org.springframework.batch.test.context
BeanPostProcessor implementation that injects a job bean into JobLauncherTestUtils if there is a unique job bean.
BatchTestContextBeanPostProcessor() - Constructor for class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
 
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
 
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
Deprecated, for removal: This API element is subject to removal in a future version.
createJobExecution(String, Long, Long, JobParameters) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobExecution with the parameters provided.
createJobExecutions(int) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
Use the JobRepository to create some JobExecution instances each with a single step execution.
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.
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() - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobInstance with default parameters.
createJobInstance(String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
Create a JobInstance with the parameters provided.
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) - 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(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(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
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 in favor of similar utilities provided by Spring Framework. Scheduled for removal in 5.2.
DataSourceInitializer() - Constructor for class org.springframework.batch.test.DataSourceInitializer
Deprecated.
 
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
Deprecated.
 
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

equals(Object) - Method in class org.springframework.batch.test.context.BatchTestContextCustomizer
 
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

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.JobLauncherTestUtils
 
getJobRepository() - Method in class org.springframework.batch.test.JobLauncherTestUtils
 
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.JobLauncherTestUtils
Convenient method for subclasses to grab a StepRunner for running steps by name.
getUniqueJobParameters() - Method in class org.springframework.batch.test.JobLauncherTestUtils
 
getUniqueJobParametersBuilder() - 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
 

H

hashCode() - Method in class org.springframework.batch.test.context.BatchTestContextCustomizer
 

J

JOB_NAME - Static variable in class org.springframework.batch.test.StepRunner
Name of the single-step job surrounding steps when tested individually
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) - 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
 

L

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.JobLauncherTestUtils
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(String, JobParameters) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(String, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(String, ExecutionContext) - Method in class org.springframework.batch.test.JobLauncherTestUtils
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(Step) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(Step, JobParameters) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(Step, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
launchStep(Step, ExecutionContext) - Method in class org.springframework.batch.test.StepRunner
Launch just the specified step in a surrounding single-step job of type SimpleJob named StepRunner.JOB_NAME.
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
Deprecated.
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

postProcessAfterInitialization(Object, String) - Method in class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
 
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

removeJobExecution(JobExecution) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
Remove the JobExecution and its associated StepExecution instances from the standard 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 locations used by Spring Batch.
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 locations used by Spring Batch.

S

setDataSource(DataSource) - Method in class org.springframework.batch.test.DataSourceInitializer
Deprecated.
 
setDestroyScripts(Resource[]) - Method in class org.springframework.batch.test.DataSourceInitializer
Deprecated.
 
setIgnoreFailedDrop(boolean) - Method in class org.springframework.batch.test.DataSourceInitializer
Deprecated.
 
setInitScripts(Resource[]) - Method in class org.springframework.batch.test.DataSourceInitializer
Deprecated.
 
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.
setJobLauncherProvider(ObjectProvider<JobLauncher>) - Method in class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
 
setJobParametersIncrementer(JobParametersIncrementer) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
 
setJobProvider(ObjectProvider<Job>) - Method in class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
 
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
 
setJobRepositoryProvider(ObjectProvider<JobRepository>) - Method in class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
 
SpringBatchTest - Annotation Interface 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.
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 H J L M O P R S 
All Classes and Interfaces|All Packages|Constant Field Values