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 I select Tools -> JUnit Tests -> Create Tests on a class which I want to test (MyClass) I get the configuration dialog. After selecting Ok nothing happens. The status bar at the top displays a message saying "Tests created." but no test class is generated. If I then choose Open Tests I get an error saying MyClassTest doesn't exist (obviously!).
Are there any methods in MyClass class? Also check Code Generation options in Create Tests dialog. If you have problems anyway, please, add build number in your comment.
If no test class was generated (e.g. because the class to be tested contains only static methods), the user gets no/wrong feedback. The status bar displays a message saying that the tests were created (which is not true) and there is no other visual feedback.
As a quick fix, I plan to do such a change so that a message dialog is displayed if no tests are generated. The message to be displayed is: No tests were created because no testable class was found. Please speak up if the solution is not acceptable.
fixed in the trunk
Actually this is a dup of another issue (or vice-versa:). I'm lazzy to look for that issue. And just confirming that in current NB DEV (4.0) mentined solution is implemented.