类 RestDocsTestExecutionListener

  • 所有已实现的接口:
    org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

    public class RestDocsTestExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    A 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.
    从以下版本开始:
    1.4.0
    • 方法详细资料

      • beforeTestMethod

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

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