开发者

Equivalent of Junit 4's @RunWith annotation in Junit 3.8

开发者 https://www.devze.com 2023-03-20 21:54 出处:网络
What it the equivalent of using the @RunWith annotation for Junit 3.8? I\'ve searched for a while on this, but Junit 3.8 is much older and I haven\'开发者_如何学Got been able to find much on the subje

What it the equivalent of using the @RunWith annotation for Junit 3.8? I've searched for a while on this, but Junit 3.8 is much older and I haven'开发者_如何学Got been able to find much on the subject. We are using a 1.4 jre so Junit 4 is out of the question to use.


If I remember correctly we used to do our own TestRunner implementations that our suites extended.


Turns out we can use Junit 4 to execute tests with Junit 3.8 by using the Junit38ClassRunner which is included in Junit 4.

0

精彩评论

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