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>
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.:


It should be:


(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/ (1.22)