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.
When a test class is generated for an existing class using JUnit wizard "New Test for Existing Class", the generated test class sometimes misses test methods. I am able to reproduce this bug under the following conditions: - NetBeans just started - single project of type "Java Application" open - the project has two source package folders and two test package folders (customized in the project's properties) - the project contains two classes having the same name, each in one of the source package folders - the test class is to be created for one of these classes
An accurate is: Test methods are not generated from the JUnit wizard (Test for Existing Class) until the user invokes action Create Tests and confirms the Create Tests dialog.
The cause is that the JUnit wizard iterator does not call method TestCreator.initialize().
Fixed in the trunk. Modified file: junit/src/org/netbeans/modules/junit/wizards/: SimpleTestCaseWizardIterator.java (1.15) The patch simply adds a call of TestCreator.initialize() before the code which initiates test creation from the wizard.
This is not reproducible both inside nb 5.0fcs and nb6.0 dev 200603141900. (FIXED && TM==4.1) => CLOSED