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

Summary: J2MEUNIT- Duplicate methods with the same name
Product: javame Reporter: Fabiola Rios <fabiola>
Component: JUnitAssignee: Jiri Prazak <bohemius>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 77184    

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)