4

是否有类似于ErrorCollectorJunit 中的 TestNG 方法,我们可以通过它显示错误/异常tesng

4

1 回答 1

4

这看起来有点像SoftAssertsTestNG最近在 6.8 中引入了软断言。

import org.testng.asserts.SoftAssert;

阅读更多@ http://beust.com/weblog/2012/07/29/reinventing-assertions/

于 2013-01-29T13:10:19.210 回答