类 RestDocsTestExecutionListener
- java.lang.Object
- org.springframework.test.context.support.AbstractTestExecutionListener
- org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener
- 所有已实现的接口:
org.springframework.core.Ordered
,org.springframework.test.context.TestExecutionListener
public class RestDocsTestExecutionListener extends org.springframework.test.context.support.AbstractTestExecutionListener
ATestExecutionListener
for Spring REST Docs that removes the need for a@Rule
when using JUnit or manual before and after test calls when using TestNG.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 RestDocsTestExecutionListener()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterTestMethod(org.springframework.test.context.TestContext testContext)
void
beforeTestMethod(org.springframework.test.context.TestContext testContext)
int
getOrder()
构造器详细资料
RestDocsTestExecutionListener
public RestDocsTestExecutionListener()
方法详细资料
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
- 覆盖:
getOrder
在类中org.springframework.test.context.support.AbstractTestExecutionListener
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
- 抛出:
Exception
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
- 抛出:
Exception