I have read a lot about unit testing, but I still haven’t found any good examples that would show why unit testing is worth the time.
I would like to see actual Java code that shows how unit test is done and how it will catch possible bugs.
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.
Unit testing is not about catching possible bugs, its about ‘feeling a little bit safe’. Good example is a project with code base larger than hello world with multiple developers. It is only a matter of time, when somebody breaks something, what was working before. The question is – when will you know it? After the application is deployed or during development?