如何在Eclipse中选择或更改JUnit版本?

tri*_*ons 9 eclipse junit eclipse-plugin junit4

基本上我使用的源代码需要一个非常具体的JUnit测试版本,例如:

lucene-test-framework-XX.jar
  The compiled Lucene test-framework library.
  Depends on junit 4.10.x (not 4.9.x, not 4.11.x), and Apache Ant 1.7.x (not 1.6.x, not 1.8.x)
Run Code Online (Sandbox Code Playgroud)

但是,我是Eclipse新手,我在哪里以及如何将JUnit更改为4.10.x?

非常感谢提前!

hEA*_*ASH 9

我在过去通过(特别)删除先前的,然后在我的项目属性的库设置中添加特定的JUnit(外部)JAR来改变我的.步骤如下:

  1. 项目>属性> Java构建路径>库
  2. 单击右侧的"添加外部JAR ..."按钮 - >选择您喜欢的JUnit jar
  3. 单击确定按钮

http://aggroculture.com/images/JUnitChange.png