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 - It is not possible to create an empty test skeleton for a given source class
Summary: It is not possible to create an empty test skeleton for a given source class
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2008-03-03 16:07 UTC by Marian Petras
Modified: 2008-06-30 13:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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