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 90488 - Create JUnit Test from Existing Class Wizard Error
Summary: Create JUnit Test from Existing Class Wizard Error
Status: RESOLVED DUPLICATE of bug 89820
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:
Depends on:
Blocks:
 
Reported: 2006-12-03 03:25 UTC by myatt83
Modified: 2007-01-07 22:29 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 myatt83 2006-12-03 03:25:06 UTC
In NB 6.0 M5, I used New File > Create Test from existing Class wizard. I set 
the CLass to Test field to a class 'Person' that contains several methods with 
different signatures. Once I click the finish button I get a message 'No tests 
were created because no testable class was found'. The same Java class works 
fine in NB 5.5 (I can use the wizard to generate a junit test from it).

I also notice in the NB6M5 release that the new Junit test wizard lists the 
Created Path field with alternating slashses for the directory path.

The URL should be :

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

but instead is displayed as : 

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


Setup : 

NetBeans IDE Dev (Build 200611291315)
1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b01
Windows XP version 5.1 running on x86
en_US (nb); Cp1252
Comment 1 Marian Petras 2007-01-07 22:23:18 UTC
I filed a separate bug report for that issue with alternating slashes: #91973
Comment 2 Marian Petras 2007-01-07 22:29:52 UTC
This is caused by missing JUnit test generator - see issue #89820.

*** This issue has been marked as a duplicate of 89820 ***