Index
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
-
BeanPostProcessorimplementation that injects a job bean intoJobLauncherTestUtilsif there is a unique job bean. - BatchTestContextBeanPostProcessor() - Constructor for class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
- BatchTestContextCustomizer - Class in org.springframework.batch.test.context
-
ContextCustomizerimplementation that adds batch test utility classes (JobLauncherTestUtilsandJobRepositoryTestUtils) as beans in the test context. - BatchTestContextCustomizer() - Constructor for class org.springframework.batch.test.context.BatchTestContextCustomizer
- BatchTestContextCustomizerFactory - Class in org.springframework.batch.test.context
-
Factory for
BatchTestContextCustomizer. - 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
JobExecutionwith default parameters. - createJobExecution(Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
JobExecutionwith the parameters provided. - createJobExecution(String, Long, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
JobExecutionwith 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.use {
MetaDataInstanceFactory.createJobExecution(String, Long, Long, JobParameters)} instead. Will be removed in v5.2 - createJobExecution(String, Long, Long, JobParameters) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
JobExecutionwith the parameters provided. - createJobExecutions(int) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
-
Use the
JobRepositoryto create someJobExecutioninstances each with a single step execution. - createJobExecutions(String, String[], int) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
-
Use the
JobRepositoryto create someJobExecutioninstances 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
JobExecutionwith the parameters provided with attached step executions. - createJobInstance() - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
JobInstancewith default parameters. - createJobInstance(String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
JobInstancewith the parameters provided. - createStepExecution() - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
StepExecutionwith default parameters. - createStepExecution(String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
StepExecutionwith the parameters provided. - createStepExecution(JobExecution, String, Long) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
StepExecutionwith the parameters provided. - createStepExecution(JobParameters) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
StepExecutionand all its parent entities with default values, but using theJobParametersprovided. - createStepExecution(JobParameters, ExecutionContext) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
StepExecutionand all its parent entities with default values, but using theExecutionContextandJobParametersprovided. - createStepExecution(ExecutionContext) - Static method in class org.springframework.batch.test.MetaDataInstanceFactory
-
Create a
StepExecutionand all its parent entities with default values, but using theExecutionContextprovided. - 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
ExecutionContextvalues 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
JobExecutionas 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
StepExecutionas 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
StepRunnerfor 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
JobExecutioninstances 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
JobRepositoryTestUtilswith all its mandatory properties. - JobScopeTestExecutionListener - Class in org.springframework.batch.test
-
A
TestExecutionListenerthat 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
JobScopein 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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
SimpleJobnamedStepRunner.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
- 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
JobExecutionas a test context attribute. - prepareTestInstance(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
-
Set up a
StepExecutionas a test context attribute.
R
- removeJobExecution(JobExecution) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
-
Remove the
JobExecutionand its associatedStepExecutioninstances from the standard locations used by Spring Batch. - removeJobExecutions() - Method in class org.springframework.batch.test.JobRepositoryTestUtils
-
Remove all the
JobExecutioninstances, and all associatedJobInstanceandStepExecutioninstances from the standard locations used by Spring Batch. - removeJobExecutions(Collection<JobExecution>) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
-
Remove the
JobExecutioninstances, and all associatedJobInstanceandStepExecutioninstances 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
JobLauncherinstance 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
JobRepositoryto use for creating newJobExecutioninstances. - 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
TestExecutionListenerthat 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
StepScopein unit tests. - StepScopeTestUtils() - Constructor for class org.springframework.batch.test.StepScopeTestUtils
All Classes and Interfaces|All Packages|Constant Field Values