suite with swing
2 posts in topic
Flat View  Flat View

Posted By:   Dominik_Dorfmeister
Posted On:   Monday, July 7, 2003 12:42 AM

can you create a TestSuite with more than one test and run it with the swingui of junit, or is this only possible with the textui!?

thanks in advance for your answers!

Re: suite with swing

Posted By:   Anonymous  
Posted On:   Tuesday, July 8, 2003 03:00 AM

Yes and yes.

The samples of JUnit contain all more than one tests. I also recommend the cookbook which is delivered with JUnit.

For short: all testrunners try to get the test cases. First by asking for a suite() method secondary by reflection (all public void testName() methods). For each of these test cases

  1. an instance is created

  2. setUp() is called

  3. the method itself is called

  4. tearDown() is called

Re: suite with swing

Posted By:   Rameshkumar_Poopandi  
Posted On:   Tuesday, July 8, 2003 02:57 AM

Yes, you can.
About | Sitemap | Contact