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 91973 - Alternating slashes in the "New Test for Existing Class" wizard Alternating slashes in the Created File text-field
Summary: Alternating slashes in the "New Test for Existing Class" wizard Alternating s...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2007-01-07 22:21 UTC by Marian Petras
Modified: 2007-02-16 19:28 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 Marian Petras 2007-01-07 22:21:17 UTC
In the "New Test for Existing Class" there is a text-field labeled "Created
File:". It displays path with alternating slashes, e.g.:

   d:\projects\projectName\test/com\mydomain\PersonTest.java

It should be:

   d:\projects\projectName\test\com\mydomain\PersonTest.java

(This issue was extracted from issue #90488.)
Comment 1 Marian Petras 2007-01-07 22:51:33 UTC
Caused by a hard-coded directory separator in the source code, specifically in
class org.netbeans.modules.junit.wizards.SimpleTestStepLocation:

1080    private void updateCreatedFileName() {
1081        tfCreatedFile.setText(testsRootDirName + '/' + testRelFileName);
1082    }
Comment 2 Marian Petras 2007-02-16 19:28:25 UTC
Fixed in the trunk.

Modified file:
  junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java (1.22)

Diff:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java?r1=1.21&r2=1.22&diff_format=u