Hey guys

Simple question really, If a class that I want to test has overloaded methods, what is the best practice for testing them? Is it to have a single test method that tests both? What do others do in this situation?

eg

Class X{


public void doSomething(String a){} public void doSomething(String a, String b){}

}

Class TestX{

public void testDoSomething(){
        //code to test both methods
}
}

Cheers

Rich

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to