This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I heard about Test Driven Development where we write out testcase first and then code .I don't know how we can write testcase to test a method if we yet don't implemented the class.I am using Junit for unit test case.Can anyone please tell me with example.
You write the test as if there already was a class with exactly the API you need to write the tests sensibly. That test, of course, won't compile to begin with, so the first step in making it run is writing just enough of the production code to make the test compile.
Does that help?
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