jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rod Macpherson" <rmacpher...@abovehealth.com>
Subject Sweeter Suites
Date Wed, 21 Sep 2005 13:42:26 GMT
Would something like this be worth adding to cactus? I cobbled together
a class called MethodTestSuite that dynamically creates tests based on a
method name. Granted, it's just syntatic sugar for
suite.add(newMyTestSuite("myMethod")) which I found rather tart:)

public class MyTestSuite extends TestCase 
{
	public static Test suite()
	{
		MethodTestSuite suite = new
MethodTestSuite(MyTestSuite.class);
		
		suite.add("testDial");
		suite.add("testConnect");
		suite.add("testDisconnect");

		return suite;
	}
	...
}


Mime
View raw message