This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Is there any way to find out code coverage when each of my JUnit test case is ran.
I assume when you say code coverage, you are taking about test coverage which tells you that whether all you code are covered under your Junit test cases. Clover is one good tool for this. You can integrate it with your IDE and see the test coverage at class level, package level and project level. Check the URL for more details Clover
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Thanks to you all. After reading these documents, manuals and FAQs, I think I was rather over-empasizing the code coverage. I was initially thinking that a test case for a class should test all features of the class. But it seems the collection of test cases should test all features of all the classes.