Class BatchTestContextCustomizer
java.lang.Object
org.springframework.batch.test.context.BatchTestContextCustomizer
- All Implemented Interfaces:
org.springframework.test.context.ContextCustomizer
public class BatchTestContextCustomizer
extends Object
implements org.springframework.test.context.ContextCustomizer
ContextCustomizer
implementation that adds batch test utility classes
(JobLauncherTestUtils
and JobRepositoryTestUtils
) as beans in the test
context.- Since:
- 4.1
- Author:
- Mahmoud Ben Hassine, Alexander Arshavskiy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
customizeContext
(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig) boolean
int
hashCode()
-
Constructor Details
-
BatchTestContextCustomizer
public BatchTestContextCustomizer()
-
-
Method Details
-
customizeContext
public void customizeContext(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig) - Specified by:
customizeContext
in interfaceorg.springframework.test.context.ContextCustomizer
-
equals
-
hashCode
public int hashCode()
-