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 74817

Summary: Create Test dialog: Javadoc comment generated even when not checked
Product: java Reporter: Max Sauer <msauer>
Component: JUnitAssignee: Marian Petras <mpetras>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Max Sauer 2006-04-11 10:45:56 UTC
When creating a JUnit test for a java class, Javadoc comments are generated to
created test class even when 'Javadoc Comments' checkbox is unchecked.

Steps to reproduce
------------------
1) Have a j2se project opened
2) Create a JUnit test for a java class
3) Uncheck the 'Javadoc comments' checkbox
4) Confirm
--> Javadoc comments are generated for test methods anyway

This used to work inside NB 5.0 fcs

---------
NetBeans IDE Dev (Build 200604101800)
1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b76
SunOS version 5.10 running on sparc
en (nb); ISO646-US
Comment 1 Marian Petras 2006-04-11 14:34:16 UTC
Confirmed, accepted.
Comment 2 Marian Petras 2006-04-11 14:41:43 UTC
This a bug caused by a trivial typo made during the recent transition to the new
JUnit SPI (see issue #74160).
Comment 3 Marian Petras 2006-04-11 14:44:18 UTC
Fixed in the trunk.

Modified files:
    junit/src/org/netbeans/modules/junit/TestCreator.java   (1.60)

Diff:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/TestCreator.java?r1=1.59&r2=1.60&diff_format=u
Comment 4 Max Sauer 2006-04-20 15:03:24 UTC
Verified. Thanks for the fix.

-----
NetBeans IDE Dev (Build 200604191800)
1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b76
SunOS version 5.10 running on sparc
en (nb); ISO646-US