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

Summary: Alternating slashes in the "New Test for Existing Class" wizard Alternating slashes in the Created File text-field
Product: java Reporter: Marian Petras <mpetras>
Component: JUnitAssignee: Marian Petras <mpetras>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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