Class BatchTestContextCustomizer
- java.lang.Object
- org.springframework.batch.test.context.BatchTestContextCustomizer
- All Implemented Interfaces:
org.springframework.test.context.ContextCustomizer
public class BatchTestContextCustomizer extends java.lang.Object implements org.springframework.test.context.ContextCustomizer
ContextCustomizer
implementation that adds batch test utility classes (JobLauncherTestUtils
andJobRepositoryTestUtils
) as beans in the test context.- Since:
- 4.1
- Author:
- Mahmoud Ben Hassine
Constructor Summary
Constructors Constructor Description BatchTestContextCustomizer()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customizeContext(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig)