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.
[ BUILD # : 201111060600 ] [ JDK VERSION : 1.6.27 ] In a NetNebeans Module, * creating new test file (selecting Java file and Tools --> Create JUnit Test) * Selecting JUnit 3.x the - Test file is created with JUnit 3.x (correct!) - JUnit 4 library is added (wrong! it should be JUnit 3) In IDE log I found the following message: WARNING: Project module8: Could not modify set of JUnit libraries - operation not supported by the project. but I'm not sure it is relevant.
Created attachment 113074 [details] IDE with shown JUnit 4 library and JUnit 3 source file
I am sorry I cannot reproduce in latest build NetBeans IDE Dev (Build 20120326-142a2031e2c0). I used the context menu on the java class as well as the wizard to create test for existing class and they both created a test class and added JUnit 3.8.2 library to the Test Libraries. Feel free to reopen.
It works correctly on Windows 7, but the bug still occurs in Linux Version (Ubuntu).
This is not supported. junit 3 in not available for module development. But junit4 is compatible with junit3. You can create a module wrapping junit3.x and add it as a dependency in your module instead.