开发者

spring with testNG without subclassing

is there any way to use testNG and spring without subclassing or copying half of AbstractTestNGSpringContextTests? is there anything simple like jun开发者_StackOverflow社区it's @RunWith?


According to the Spring documentation, it doesn't look like it provides a TestNG test runner out of the box:

In addition to generic testing infrastructure, the TestContext framework provides explicit support for JUnit 3.8.2, JUnit 4.5+, and TestNG 5.10 in the form of abstract support classes. For JUnit 4.5+, the framework also provides a custom Runner that allows one to write test classes that are not required to extend a particular class hierarchy.

I suppose you could try to write a your own custom TestNG test runner that could do something similar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜