Can you explain in a few sentences:
- Why we need it / why they make our life easier ?
- How to unit-test [simple example in Java] ?
- When do not we need them / types of projects we can leave unit-testing out?
- useful links
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the JUnit website and the JUnit cookbook for details. There isn’t much to writing JUnit test cases. Actually coming up with good test cases is surely harder than the actual implementation.
Don’t try to test every method in a class, but rather focus on testing the functionality of a class. Beans for example, you won’t write tests for the getters and setters…
JUnit – Unit testing
EclEmma – test coverage tool
link text – Wikipedia link to unit testing