Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- afterTestMethod(TestContext) - Method in class org.springframework.batch.test.JobScopeTestExecutionListener
- afterTestMethod(TestContext) - Method in class org.springframework.batch.test.StepScopeTestExecutionListener
B
- BatchTestContextBeanPostProcessor - Class in org.springframework.batch.test.context
-
BeanPostProcessorimplementation that injects a job bean intoJobOperatorTestUtilsif 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 (JobOperatorTestUtilsandJobRepositoryTestUtils) 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) - 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, 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) - 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
- 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")
- doInJobScope(JobExecution, Callable) - Static method in class org.springframework.batch.test.JobScopeTestUtils
- doInStepScope(StepExecution, Callable) - 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.
G
- getJob() - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- getJob() - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Get the job that can be operated by this utility.
- 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
-
Deprecated.
- getJobOperator() - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Get the job operator used by this utility.
- getJobRepository() - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- getJobRepository() - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Get the job repository used by this utility.
- 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
-
Deprecated.Convenient method for subclasses to grab a
StepRunnerfor running steps by name. - getUniqueJobParameters() - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- getUniqueJobParameters() - Method in class org.springframework.batch.test.JobOperatorTestUtils
- getUniqueJobParametersBuilder() - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- getUniqueJobParametersBuilder() - Method in class org.springframework.batch.test.JobOperatorTestUtils
- 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 - Variable in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- JOB_NAME - Static variable in class org.springframework.batch.test.JobOperatorTestUtils
-
Name of the single-step job surrounding steps when tested individually
- JOB_NAME - Static variable in class org.springframework.batch.test.StepRunner
-
Deprecated.Name of the single-step job surrounding steps when tested individually
- jobLauncher - Variable in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- JobLauncherTestUtils - Class in org.springframework.batch.test
-
Deprecated, for removal: This API element is subject to removal in a future version.
- JobLauncherTestUtils() - Constructor for class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- jobOperator - Variable in class org.springframework.batch.test.JobOperatorTestUtils
- JobOperatorTestUtils - Class in org.springframework.batch.test
-
Utility class for testing batch jobs.
- JobOperatorTestUtils(JobOperator, JobRepository) - Constructor for class org.springframework.batch.test.JobOperatorTestUtils
-
Create a new instance of
JobOperatorTestUtilswith the provided job repository and job operator. - jobRepository - Variable in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- JobRepositoryTestUtils - Class in org.springframework.batch.test
-
Convenience class for creating and removing
JobExecutioninstances from a database. - 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.
L
- launchJob() - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0 in favor of
JobOperatorTestUtils.startJob(). Scheduled for removal in 6.2 or later. - launchJob(JobParameters) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0 in favor of
JobOperatorTestUtils.startJob(JobParameters). Scheduled for removal in 6.2 or later. - launchStep(String) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0 in favor of
JobOperatorTestUtils.startStep(String). Scheduled for removal in 6.2 or later. - launchStep(String, JobParameters) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.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
-
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0 in favor of
JobOperatorTestUtils.startStep(String, JobParameters, ExecutionContext). Scheduled for removal in 6.2 or later. - launchStep(String, ExecutionContext) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.Logger
- logger - Variable in class org.springframework.batch.test.StepRunner
-
Deprecated.Logger
M
- MetaDataInstanceFactory - Class in org.springframework.batch.test
-
Convenience methods for creating test instances of
JobExecution,JobInstanceandStepExecution. - 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) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
-
Remove the
JobExecutioninstances, and all associatedJobInstanceandStepExecutioninstances from the standard locations used by Spring Batch.
S
- secureRandom - Variable in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- setJob(Job) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.The Job instance that can be manipulated (e.g. launched) in this utility.
- setJob(Job) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Set the job that can be operated by this utility.
- setJobLauncher(JobLauncher) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.A
JobLauncherinstance that can be used to launch jobs. - setJobOperator(JobOperator) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Set the job operator to be used by this utility.
- setJobOperatorProvider(ObjectProvider) - Method in class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
- setJobParametersIncrementer(JobParametersIncrementer) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
- setJobProvider(ObjectProvider) - Method in class org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
- setJobRepository(JobRepository) - Method in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.The
JobRepositoryto use for creating newJobExecutioninstances. - setJobRepository(JobRepository) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Set the job repository to be used by this utility.
- setJobRepository(JobRepository) - Method in class org.springframework.batch.test.JobRepositoryTestUtils
- setJobRepositoryProvider(ObjectProvider) - 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.
- startJob() - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Start the entire job, including all steps, with a set of unique random job parameters.
- startJob(JobParameters) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Start the entire job, including all steps, with the provided set of job parameters.
- startStep(String) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Start just the specified step in a surrounding single-step job of type
SimpleJobnamedJobOperatorTestUtils.JOB_NAME. - startStep(String, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Extract the step from the injected job and start it in a surrounding single-step job of type
SimpleJobnamedJobOperatorTestUtils.JOB_NAME. - startStep(Step) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Start just the specified step with a unique set of job parameters in a surrounding single-step job of type
SimpleJobnamedStepRunner.JOB_NAME. - startStep(Step, JobParameters, ExecutionContext) - Method in class org.springframework.batch.test.JobOperatorTestUtils
-
Start just the specified step in a surrounding single-step job of type
SimpleJobnamedStepRunner.JOB_NAME. - stepRunner - Variable in class org.springframework.batch.test.JobLauncherTestUtils
-
Deprecated.
- StepRunner - Class in org.springframework.batch.test
-
Deprecated, for removal: This API element is subject to removal in a future version.since 6.0 in favor of
JobOperatorTestUtils.startStep(String, JobParameters, ExecutionContext). Scheduled for removal in 6.2 or later - StepRunner(JobLauncher, JobRepository) - Constructor for class org.springframework.batch.test.StepRunner
-
Deprecated.
- 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.
All Classes and Interfaces|All Packages|Constant Field Values
JobOperatorTestUtils. Scheduled for removal in 6.2 or later.