This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
I am new to JUnittest cases,i want to write the test case for a bean classes,can anyone help me regarding on this.
and also when we use assertEquals() method,we will pass 2 arguments one is expected value and another one is the method which returns the value; if we don't know the expected value how can we pass the first argument?
If you don't know what the return value of a method should be, how can you test it? If you don't know what the return value for the scenario of the test should be, how could you even implement it?
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