You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Cumbers <rl...@kent.ac.uk> on 2005/01/13 15:35:24 UTC
Overloaded class methods
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