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 43423

Summary: Why not generate class and method signature from their corresponding test class
Product: java Reporter: vbrabant <vbrabant>
Component: JUnitAssignee: junit-issues@java <junit-issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description vbrabant 2004-05-18 11:49:25 UTC
NB200405161800 & JDK 1.4.2

I like to write my Test classes first and then
write the class to test.

If NB could implement a feature like Generate
Class to Test, from the test class, it would be nice.
It means that it could create the class with the
constructor having the signature corresponding to
the one used by the test class. It could also
create public methods with same signature as in
hte test class.
Obviously, you have to fill the body. But at least
skeletton is written for you.

If NB can generate skeleton of a junit test class
from a class, why not the inverse operation ?

just my 2 cents
Comment 1 Marian Petras 2004-05-18 13:11:29 UTC
It seems reasonable. It could be implemented in some future release of
NetBeans. It will not be in NetBeans 4.0 because it is too late.
Comment 2 Alexei Mokeev 2010-05-05 10:21:55 UTC

*** This bug has been marked as a duplicate of bug 175244 ***