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 - Why not generate class and method signature from their corresponding test class
Summary: Why not generate class and method signature from their corresponding test class
Status: RESOLVED DUPLICATE of bug 175244
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: junit-issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 11:49 UTC by vbrabant
Modified: 2010-05-05 10:21 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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