Class 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 and JobRepositoryTestUtils) as beans in the test context.
    Since:
    4.1
    Author:
    Mahmoud Ben Hassine
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidcustomizeContext​(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchTestContextCustomizer

        public BatchTestContextCustomizer()
    • Method Detail

      • 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