This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 78255

Summary: J2MEUNIT - don't add setUp/tearDown methods to suite
Product: javame Reporter: Lukas Hasik <lhasik>
Component: JUnitAssignee: Jiri Prazak <bohemius>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 77184    

Description Lukas Hasik 2006-06-19 13:32:16 UTC
nb060604, mp060604

-in the test class it adds the tearDown/setUp methods to the suite
-it has no sense to add these methods. They should run only before and after
every test.

       suite.addTest(new MidletTest("setUp", new TestMethod(){ public void
run(TestCase tc) {((MidletTest) tc).setUp();}}));
        suite.addTest(new MidletTest("tearDown", new TestMethod(){ public void
run(TestCase tc) {((MidletTest) tc).tearDown();}}));
        return suite;
Comment 1 Jiri Prazak 2006-06-20 14:13:16 UTC
fixed
Comment 2 Lukas Hasik 2006-06-27 13:21:54 UTC
verified 0627 with jars
Comment 3 Lukas Hasik 2006-07-12 15:37:29 UTC
verified in 5.5 build 060711 buils (Beta2 candidate)