This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: Junit - Getting (quickly) started with Examples
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
Many a times, programmer tends not to worry about testing his code. Apart from many other reasons, one could be lack of time availability. Whatever may be the reason, a programmer must not skip at least Unit Testing his code.
But how does a programmer know what to test and how? The short answer is, by writing test cases and using a testing framework like JUnit.
Test Cases? Test Cases are conditions specified to ensure that the code is full proof and meets the minimum crietria for code acceptance.
How to use JUnit? Very simple. Click the title of this post and follow the instruction on the page. This is a very short, simple and nice tutorial to get you started with JUnit by Garnier J M.