I am working on Junit test case and we have lot of void return type methods. I want to know how can I test and write JUnit for void return type method.
In HashMap we have clear method right, how do you test it? You know what happens when we called that method. Just test it by iterating over it. If you found any element clear method is wrong or else it's fine. Like that you have to do.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.