@NonNullApi
Package org.springframework.batch.test
Utility classes for batch job/step testing.
- Author:
- Mahmoud Ben Hassine
Class Summary Class Description AbstractJobTests Deprecated. (from 2.1) useJobLauncherTestUtils
insteadAssertFile This class can be used to assert that two files are the same.DataSourceInitializer Wrapper for aDataSource
that can run scripts on start up and shut down.ExecutionContextTestUtils Convenience class for accessingExecutionContext
values from job and step executions.JobLauncherTestUtils Utility class for testing batch jobs.JobRepositoryTestUtils Convenience class for creating and removingJobExecution
instances from a database.JobScopeTestExecutionListener ATestExecutionListener
that sets up job-scope context for dependency injection into unit tests.JobScopeTestUtils Utility class for creating and manipulatingJobScope
in unit tests.JsrTestUtils Provides testing utilities to execute JSR-352 jobs and block until they are complete (since all JSR-352 based jobs are executed asynchronously).MetaDataInstanceFactory StepRunner Utility class for executing steps outside of aJob
.StepScopeTestExecutionListener ATestExecutionListener
that sets up step-scope context for dependency injection into unit tests.StepScopeTestUtils Utility class for creating and manipulatingStepScope
in unit tests.