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 77729 - J2MEUNIT- Duplicate methods with the same name
Summary: J2MEUNIT- Duplicate methods with the same name
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Jiri Prazak
URL:
Keywords:
Depends on:
Blocks: 77184
  Show dependency tree
 
Reported: 2006-06-12 15:55 UTC by Fabiola Rios
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 Fabiola Rios 2006-06-12 15:55:26 UTC
Have a application with two methods with the Same Name and differents
parameters.  JUnit generates two differents test methods, it should be generates
only one method.
Comment 1 Lukas Hasik 2006-06-15 19:46:42 UTC
have methods
myMethod(String s)
myMethod(int i)

only one test method should be generated
testMyMethod(...)

---
IMO, to generate skeletons for all methods isn't necessary because the skeleton
of test method can be easily copied to coved even the method with the different
parameter(s). It doesn't matter for what method it will generate the skeleton.

Anyway, it shouldn't generate two test methods with the same name. The code is
uncompilable
Comment 2 Jiri Prazak 2006-06-20 14:12:48 UTC
fixed
Comment 3 Lukas Hasik 2006-06-21 17:13:48 UTC
verified with jars provided by Jirka (0620)
Comment 4 Lukas Hasik 2006-07-12 15:36:49 UTC
verified in 5.5 build 060711 buils (Beta2 candidate)