dcsimg
Is there a way to just add a test method to a suite in JUnit?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sharath_nagendra
Posted On:   Monday, January 12, 2004 07:37 AM

Is there a way to just add a test method to a suite in JUnit(note not a test case or suite but just a test method)?

Re: Is there a way to just add a test method to a suite in JUnit?

Posted By:   Lance_Walton  
Posted On:   Tuesday, February 3, 2004 06:50 PM

Hi.

Yes, indeed. Do something like (from the JUnit Cookbook):


TestSuite suite= new TestSuite();
suite.addTest(new MoneyTest("testMoneyEquals"));


Regards,

Lance

About | Sitemap | Contact