jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cumbers <r...@kent.ac.uk>
Subject Overloaded class methods
Date Thu, 13 Jan 2005 14:35:24 GMT
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?


Class X{

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


Class TestX{

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



View raw message