Spring org.springframework.restdocs.RestDocumentation 类重写了 org.junit.rules.TestRule 的 apply 方法,这意味着所有测试用例都应该用 Junit 编写。我如何使用 TestNG 实现相同的功能。
最佳答案
目前没有使用 TestNG 的内置支持。您可能对this issue感兴趣它正在跟踪添加它的可能性。
关于spring-restdocs - Spring 的 RestDocumentation 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33911206/