JUnit tutorial for learning [closed]

牧云@^-^@ 提交于 2019-12-25 19:07:07

问题


I want to learn JUnit from basic in Java and how to apply in my project. It would be very helpful if anybody can tell from where to start. I have seen some tutorial but i can't understand from it.


回答1:


You can write your test code before or after write your source code. You can read about Test-driven development process.

For learning JUnit testing this can help to you.

You will get more details about JUnit testing in the Book "Pragmatic Unit Testing in Java with JUnit".




回答2:


Also go through Dependency Injection and Inversion of Control They are pretty useful concepts to put into practice when one intends to do test driven development. There is a nice discussion about that also on stackexchange



来源:https://stackoverflow.com/questions/18425616/junit-tutorial-for-learning

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!