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 52394 - "New test" usability (again)
Summary: "New test" usability (again)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: UI, USABILITY
Depends on:
Blocks:
 
Reported: 2004-12-14 14:05 UTC by ats37
Modified: 2008-11-26 12:51 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2004-12-14 14:05:35 UTC
In my project ("Java Project with Existing Ant
Script" type), I have a separate directories for
my application's source files and the unit test
source files (each with the same package
hierarchy, so that the tests can access package
scope fields & methods).  I have both these Source
Package Folders specified in the project properties.

If I create a new unit test using the File -> New
File -> JUnit -> Test for Existing Class, there is
a drop-down list for the Location which allows me
to generate the test directly in my test sources
folder.  However, when creating a unit test for a
class using the right-click Tools/JUnit/Create
Test action, it always puts the resulting file in
the same directory as the original class and I
have to use cut & paste in the Explorer window to
move it to the unit tests source tree.

It would be useful if the RMB Create Tests dialog
also contained a drop down list of the project's
Source Folders, so that I can select to have the
files generated directly in their desired location.

I would have added this as a comment to Issue
47448, but it says in there "For all other
comments ... please file separate issue reports",
so I'm doing as requested ;-)
Comment 1 Marian Petras 2004-12-14 14:34:55 UTC
Andy, you did it right that you posted it as a separate issue, thank you.

This problem has already been identified (see
http://junit.netbeans.org/doc/UI-spec-NB-4_1.html). Development builds
of NetBeans 4.1 are already modified so that the dialog already
contains the drop-down list. The dialog will be probably changed once
more (as well as the above referred UI specification). We will discuss
further changes very soon (in less than 2 hours). If you have more
comments to the dialog, please post them here as soon as possible so
that we can discuss them, too.
Comment 2 Marian Petras 2004-12-14 14:41:03 UTC
If you have further comments on UI of JUnit, you can also post them to
users@junit.netbeans.org (you need to be subscribe on the mailing list
to see incoming e-mails, to subscribe, go to
http://junit.netbeans.org/servlets/ProjectMailingListList).
Comment 3 Marian Petras 2008-11-26 12:51:59 UTC
The requested combo-box is there (in the dialogue) - marked as FIXED.