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.
Product Version = NetBeans IDE Dev (Build 200405041800) Operating System = Linux version 2.4.22-1.2115.nptl running on i386 Java; VM; Vendor = 1.4.2_04; Java HotSpot(TM) Client VM 1.4.2_04-b05; Sun Microsystems Inc. Java Home = /usr/local/java/j2sdk1.4.2_04/jre System Locale; Encod. = cs_CZ; ISO-8859-2 Home Dir; Current Dir = /usr/local/home/delphym; /usr/local/forte/forte3/NBdev-last/netbeans/bin IDE Install; User Dir = /usr/local/forte/forte3/NBdev-last/netbeans/platform4; /usr/local/home/delphym/.netbeans/dev ------------------------------------------------------------------------------ I hope that it is not an intention that it is not possible to generate JUnit TestSuite in Project type=WebApplication In other proj.types it works fine. Reproduction: ============== 1)Create new Project...choose "Web Application" 2)Create a class in your src structure 3)invoke popup-menu in this class: Tools->JUnit Tests->Create Tests 4)Click OK on just appeared dialog "Create Tests" 5)Instead of generationg JUnit Test, you've got Error: "JUnit testing is not setuped for source file MAsterFileObject@xxxxx[...Classa.java]. Usually it means that you have to first activate JUnit testing in project owning this source file." Well, I don't have any idea what is project owning... and I don't see big differenc wheader I wish create JUnit Test for a class in J2SELib,J2SEApp or WebApp project. The only thing which is missing in WebProject is folder tests at the same level as src package.
The problem realy is, that Web projects don't contain test package root (or whatever it's called - the folder for tests). JUnit cannot do anything about it, it's a project configuration problem. Reassigning to webaps.
Now there is not any 'test' forlder in the Web Project.
This is the second issue with the same problem. I closed #44232 as wontfix. I will keep it open as an enhancement for future reference.
I'd say there some-one complains in NetCat program (on special 40cat mailing list) about same problem... and as a result is an issue #47835 which is treated as defect. so, 3 bugs are now, I would say. I suggest to left opened NetCat bug and close this one as a dup, if you agree.
*** This issue has been marked as a duplicate of 47540 ***