public class RestDocsTestExecutionListener extends 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.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
RestDocsTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(TestContext testContext) |
void |
beforeTestMethod(TestContext testContext) |
int |
getOrder() |
afterTestClass, afterTestExecution, beforeTestClass, beforeTestExecution, prepareTestInstance
public int getOrder()
getOrder
in interface Ordered
getOrder
in class AbstractTestExecutionListener
public void beforeTestMethod(TestContext testContext) throws Exception
beforeTestMethod
in interface TestExecutionListener
beforeTestMethod
in class AbstractTestExecutionListener
Exception
public void afterTestMethod(TestContext testContext) throws Exception
afterTestMethod
in interface TestExecutionListener
afterTestMethod
in class AbstractTestExecutionListener
Exception