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 51972 - No reasonable message when test generation is skipped
Summary: No reasonable message when test generation is skipped
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: junit-issues@java
URL:
Keywords: UI
Depends on:
Blocks: 52153
  Show dependency tree
 
Reported: 2004-12-01 15:05 UTC by _ rkubacki
Modified: 2006-03-24 12:41 UTC (History)
0 users

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 _ rkubacki 2004-12-01 15:05:15 UTC
Try to create a test for a package private class.
There is a progress with message 'working' and
later an information that the class was skipped.
This is unusable. How can I find what's the reason? 

OK, the problem is default setting for junit
module option 'include package private classes'.
Why this is false? IMO testing of these classes is
at least as usefull as testing of abstract ones.
Comment 1 Marian Petras 2004-12-07 13:11:20 UTC
I would split this bug report into three smaller bug reports:

1) Package-private classes are skipped by default
   (when creating tests for multiple classes).
2) No reasonable message when tests generation is skipped.
3) When the Create Tests action is invoked for a single
   package-private class, the action does nothing except
   the message in question.

Issue 3) was reported recently - see bug #52083. I will add more
description and evaluation to it soon (hopefully within an hour).

I just filed a separate RFE for issue 1) - see issue #52153 ("Do not
skip package-private classes by default").

And the remaining one is issue 2) which will be solved in this bug report.
Comment 2 Ondrej Rypacek 2005-02-21 13:16:24 UTC
Fixed. 
The message now shows the reasons why the class(es) was(were) skipped
(i.e. that it was package-private, or abstract, etc.)

Checked in:
1.41 junit/src/org/netbeans/modules/junit/TestCreator.java 
1.48 junit/src/org/netbeans/modules/junit/CreateTestAction.java
1.59 junit/src/org/netbeans/modules/junit/Bundle.properties
Comment 3 Max Sauer 2006-03-24 10:50:36 UTC
Verified in nb5.0 fcs. The message is shown upon test creation finish.