Equivalent of Junit 4's @RunWith annotation in

2019-09-02 04:15发布

问题:

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't 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.

回答1:

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



回答2:

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



标签: java junit