开发者

How to run with old version of Junit 4 in Eclipse (Galileo)

We need to run unit tests with an older version of JUnit4 (for arcane reasons). Eclipse has a choice between Junit3 and Junit4, but there is no way to add/change the Junit4 version.

A temporary work around was to copy the junit plugin from Eclipse Ganymede, but this gets clobbered when Galileo updates itself.

It looks as far as the update manager JUnit is part of a larger update. I see no way to manage it via the update开发者_如何学Go manager or elsewere.


I believe that the junit4 used is whichever version is in your target platform. To change it, go to Window -> Preferences -> Plug-in Development -> Target Platform. The default target is the running eclipse. You can create a new target based on the default, add the old junit4 to the target, and disable the new one on the "Content" tab.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜