类 SpringBootDependencyInjectionTestExecutionListener

  • 所有已实现的接口:
    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.
    从以下版本开始:
    1.4.1
    • 字段概要

      • 从类继承的字段 org.springframework.test.context.support.DependencyInjectionTestExecutionListener

        REINJECT_DEPENDENCIES_ATTRIBUTE
      • 从接口继承的字段 org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidprepareTestInstance​(org.springframework.test.context.TestContext testContext) 
      • 从类继承的方法 org.springframework.test.context.support.DependencyInjectionTestExecutionListener

        beforeTestMethod, getOrder, injectDependencies
      • 从接口继承的方法 org.springframework.test.context.TestExecutionListener

        afterTestClass, afterTestExecution, afterTestMethod, beforeTestClass, beforeTestExecution
    • 方法详细资料

      • prepareTestInstance

        public void prepareTestInstance​(org.springframework.test.context.TestContext testContext)
                                 throws Exception
        指定者:
        prepareTestInstance 在接口中 org.springframework.test.context.TestExecutionListener
        覆盖:
        prepareTestInstance 在类中 org.springframework.test.context.support.DependencyInjectionTestExecutionListener
        抛出:
        Exception