It's time for you to play with Unit testing, especially with JUnit.
OK, let's see how to install it on Eclipse.
First of all, you need a version of JUnit.
Let's go on the official website to download it: http://www.junit.org/
In the last version, for our example, the junit4.10 one.
Open the .zip. Inside there is a junit-4.10.jar file.
In Eclipse, select a project then > Project > Properties > Java Build Path > Libraries tab > Add Jars > Select the junit-4.10.jar > OK
JUnit is ready to be used!
Let's continue this tutorial with a classic JUnit Hello World!
© Badprog - I want to change the world. And I will.
Comments
Sandeep (not verified)
Sunday, December 30, 2012 - 7:18pm
Permalink
hey man, I think Eclipse
hey man, I think Eclipse already comes with JUnit support, we need to add jar file when running test cases outside eclipse using ant or hudson.
Mi-K
Monday, December 31, 2012 - 5:57pm
Permalink
Hello Sandeep,
Hello Sandeep,
I think it depends on your Eclipse version.
Anyway thank you for your comment.
Add new comment