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 - J2MEUNIT - don't add setUp/tearDown methods to suite
Summary: J2MEUNIT - don't add setUp/tearDown methods to suite
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Jiri Prazak
URL:
Keywords:
Depends on:
Blocks: 77184
  Show dependency tree
 
Reported: 2006-06-19 13:32 UTC by Lukas Hasik
Modified: 2007-05-31 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)