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 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 interface org.springframework.test.context.ContextCustomizer
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object