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 224091 - "New Test for Existing Class" wizard ignores selected package
Summary: "New Test for Existing Class" wizard ignores selected package
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 14:17 UTC by Jiri Kovalsky
Modified: 2013-01-09 17:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of New Test for Existing Class wizard with wrongly preselected package. (214.74 KB, image/png)
2012-12-20 14:17 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2012-12-20 14:17:31 UTC
Created attachment 129588 [details]
Screenshot of New Test for Existing Class wizard with wrongly preselected package.

Product Version: NetBeans IDE Dev (Build 201212200001)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

Description:
============
"New Test for Existing Class" wizard might confuse users by generating test in different than desired package. See the screenshot to understand what I mean.

Steps to reproduce:
===================
1. Create a new Java Application project.
2. In its Properties create another Test Package Folder.
3. Right click the second one and invoke "New > Other..." from popup menu.
4. Select "Unit Tests" category and "Test for Existing Class" file type.
5. Push "Next >" button and verify that Location was set incorrectly.
Comment 1 Theofanis Oikonomou 2013-01-07 15:27:52 UTC
Fixed: http://hg.netbeans.org/core-main/rev/ef1418ff0d97
Comment 2 Quality Engineering 2013-01-08 02:24:42 UTC
Integrated into 'main-golden', will be available in build *201301080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ef1418ff0d97
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #224091 - "New Test for Existing Class" wizard ignores selected package
Comment 3 Jiri Kovalsky 2013-01-09 17:21:52 UTC
Product Version: NetBeans IDE Dev (Build 201301090001)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev