@NonNullApi
程序包 org.springframework.batch.test
Utility classes for batch job/step testing.
- 作者:
- Mahmoud Ben Hassine
类概要 类 说明 AbstractJobTests 已过时。 (from 2.1) useJobLauncherTestUtilsinsteadAssertFile This class can be used to assert that two files are the same.DataSourceInitializer Wrapper for aDataSourcethat can run scripts on start up and shut down.ExecutionContextTestUtils Convenience class for accessingExecutionContextvalues from job and step executions.JobLauncherTestUtils Utility class for testing batch jobs.JobRepositoryTestUtils Convenience class for creating and removingJobExecutioninstances from a database.JobScopeTestExecutionListener ATestExecutionListenerthat sets up job-scope context for dependency injection into unit tests.JobScopeTestUtils Utility class for creating and manipulatingJobScopein 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 ATestExecutionListenerthat sets up step-scope context for dependency injection into unit tests.StepScopeTestUtils Utility class for creating and manipulatingStepScopein unit tests.