how do we do unit test while developing java application and also if someone can send the unit test sample case then it ll be helpful to me.
Printable View
how do we do unit test while developing java application and also if someone can send the unit test sample case then it ll be helpful to me.
Welcome to DevX :WAVE:
Someone needs to develop a test plan which would list all of the features that need to be tested, what results are expected when tested, what results actually happened during testing, under what conditions the test was conducted, who did the test, and recommendations for actions, if any.
DevX has published a number of articles that can help you unit test. Each one provides an example for demonstration.
Two Critical Tips for Unit Testing in Java
http://www.devx.com/java/Article/9305
JUnit and Its Extensions Make Unit Testing Your Java Code Much Easier
http://www.devx.com/java/Article/9614
Unit Test More Efficiently with Mock Object Alternatives
http://www.devx.com/Java/Article/22599
Write Eclipse JUnit Tests in Jython
http://www.devx.com/Java/Article/26602
MockLib: Simulate APIs for Testing
http://www.devx.com/Java/Article/34990
I hope that helps.
Regards,
Glen Kunene