How to select or change JUnit version in Eclipse?
eclipse, eclipse-plugin, junit, junit4
Solution
I have changed mine out in the past by (specifically) removing the prior, then adding the specific JUnit (External) JAR in my project properties' library settings. The steps are as below:
- Project > Properties > Java Build Path > Libraries
- Click "Add External JARs..." button at right side --> Select your preferred JUnit jar
- Click OK button
(source: aggroculture.com)
Problem
Basically the source code I am using requires a very specific JUnit test version such as: ``` 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) ``` However, I am new to Eclipse, where and how do I change the JUnit to 4.10.x? Thanks a lot in advance!