I just started a new job and in order to help me familiarize myself with the currently existing project, they are getting me to do some JUnit Testing. I'm brand new to JUnit Testing and they have supplied me with lots of information about it, but just reading the information by itself is never as useful as actually doing it. So I wanted to know if anyone had any tips or suggestions for someone who is new to JUnit Testing to help me get started.
Any advice is helpful.
Re: JUnit Testing
JUnit testing is fairly easy once you understand the in's and out's. In my view it is a more flexible way of using assertions, so if you have never used assertions perhaps familiarize yourself with these.
Programming With Assertions
Next, get familiar with the API. Depending upon which version you are using, knowing a bit about injections might help
Annotations (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
There are tons of tutorials out there, and Eclipse has a built in JUnit framework that makes creating and running test cases much easier