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 37690 - No user feedback if no test class can be generated
Summary: No user feedback if no test class can be generated
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2003-12-03 04:43 UTC by gcirne
Modified: 2004-09-16 15:45 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 gcirne 2003-12-03 04:43:46 UTC
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!).
Comment 1 Jiri Skrivanek 2004-01-07 13:58:58 UTC
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.
Comment 2 Marian Petras 2004-01-08 14:53:39 UTC
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.
Comment 3 Marian Petras 2004-01-08 15:11:26 UTC
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.
Comment 4 Marian Petras 2004-01-09 18:34:27 UTC
fixed in the trunk
Comment 5 dmladek 2004-09-16 15:45:08 UTC
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.