类 SpringBootDependencyInjectionTestExecutionListener
- java.lang.Object
- org.springframework.test.context.support.AbstractTestExecutionListener
- org.springframework.test.context.support.DependencyInjectionTestExecutionListener
- org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener
- 所有已实现的接口:
org.springframework.core.Ordered
,org.springframework.test.context.TestExecutionListener
public class SpringBootDependencyInjectionTestExecutionListener extends org.springframework.test.context.support.DependencyInjectionTestExecutionListener
AlternativeDependencyInjectionTestExecutionListener
prints theConditionEvaluationReport
when the context cannot be prepared.- 从以下版本开始:
- 1.4.1
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
prepareTestInstance(org.springframework.test.context.TestContext testContext)
从类继承的方法 org.springframework.test.context.support.DependencyInjectionTestExecutionListener
beforeTestMethod, getOrder, injectDependencies
构造器详细资料
SpringBootDependencyInjectionTestExecutionListener
public SpringBootDependencyInjectionTestExecutionListener()
方法详细资料
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