public class RestDocsTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
TestExecutionListener for Spring REST Docs that removes the need for a
@Rule when using JUnit or manual before and after test calls when using TestNG.| Constructor and Description |
|---|
RestDocsTestExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext) |
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
int |
getOrder() |
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class org.springframework.test.context.support.AbstractTestExecutionListenerpublic void beforeTestMethod(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
beforeTestMethod in interface org.springframework.test.context.TestExecutionListenerbeforeTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListenerjava.lang.Exceptionpublic void afterTestMethod(org.springframework.test.context.TestContext testContext)
throws java.lang.Exception
afterTestMethod in interface org.springframework.test.context.TestExecutionListenerafterTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListenerjava.lang.Exception