Class SpringBootDependencyInjectionTestExecutionListener

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

    public class SpringBootDependencyInjectionTestExecutionListener
    extends org.springframework.test.context.support.DependencyInjectionTestExecutionListener
    Alternative DependencyInjectionTestExecutionListener prints the ConditionEvaluationReport when the context cannot be prepared.
    Since:
    1.4.1
    • Field Summary

      • Fields inherited from class org.springframework.test.context.support.DependencyInjectionTestExecutionListener

        REINJECT_DEPENDENCIES_ATTRIBUTE
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidprepareTestInstance​(org.springframework.test.context.TestContext testContext) 
      • Methods inherited from class org.springframework.test.context.support.DependencyInjectionTestExecutionListener

        beforeTestMethod, getOrder, injectDependencies
      • Methods inherited from interface org.springframework.test.context.TestExecutionListener

        afterTestClass, afterTestExecution, afterTestMethod, beforeTestClass, beforeTestExecution
    • Method Detail

      • prepareTestInstance

        public void prepareTestInstance​(org.springframework.test.context.TestContext testContext)
                                 throws Exception
        Specified by:
        prepareTestInstance in interface org.springframework.test.context.TestExecutionListener
        Overrides:
        prepareTestInstance in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
        Throws:
        Exception