Hello Friends
I am caught. I have to write a
Junit test for class A which implements interface B(1 method) and Interface C(1 method).
Three Issues/Questions:
1. Class A both methods return void thereby making test for asserts not possible? Please can you tell me any method to write a test for checking state?
2. Class A performActionC() method which is the method which should be called by client or test class catches exception there by we have no clue whether there was an exception thrown By doX or doY methods inside class C.
How to now test for exception in Class A
3, How to asser assert whether doX was called or doY was called so that I can confirm that I have tested all code lines and flows. Please can you explain hwo to test ClassA.
Thanks
Farouk
[ October 02, 2006: Message edited by: Bear Bibeault ]