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 129034

Summary: It is not possible to create an empty test skeleton for a given source class
Product: java Reporter: Marian Petras <mpetras>
Component: JUnitAssignee: Marian Petras <mpetras>
Status: RESOLVED FIXED    
Severity: blocker CC: kganfield
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marian Petras 2008-03-03 16:07:08 UTC
When the Create JUnit Tests action is invoked, a Create Tests dialogue is displayed. This dialogue requires that at
least one of check-boxes "Public", "Protected", "Package Private" is selected, otherwise the OK button is disabled. This
is wrong. Why could not one create an empty test class skeleton and add their own test methods later?
Comment 1 Marian Petras 2008-03-04 13:45:39 UTC
Fixed.

Modified files:
   junit/src/org/netbeans/modules/junit/Bundle.properties
   junit/src/org/netbeans/modules/junit/JUnitCfgOfCreate.java


Changeset:
9218529053d1
(http://hg.netbeans.org/main/rev/9218529053d1)
Comment 2 Marian Petras 2008-06-30 13:42:31 UTC
The fix was incomplete - validation of check-boxes remained active in the wizard for creation of a test class for an
existing source class. This caused bug #138151 ("MRE on MSG_AllMethodTypesDisabled in
SimpleTestStepLocation.checkChkBoxesValidity"), which I just fixed. The additional patch is:

Modified file:
   junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java
Hg changeset:
d4f61671f85d
(http://hg.netbeans.org/main/rev/d4f61671f85d)