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.
The Java EE tutorial NetBeans projects use no tests. Suddenly in the current NetBeans nightly (netbeans-dev-201102080000 on Solaris SPARC and Windows), when I open a project, I get a Reference Problems complaint about missing junit and junit_4 libraries. Our projects do not need these libraries. I think there have been references to junit and junit_4 in the project.properties files all along, but NetBeans never complained about unresolved references until just now. This is extremely annoying behavior. Can it please be reverted? You can check out the projects by clicking the Subversion link at http://java.net/projects/javaeetutorial/pages/JavaEETutorialHome.
Jesse, another duplicate of issue 195123?
NB 7.0 B2 does not bundle JUnit. If your projects have no tests, simply remove references to JUnit libraries from Test Dependencies (and delete any test source root).
Let me get this straight. In order to "remove references to JUnit libraries from Test Dependencies (and delete any test source root)" I have to: 1. Right-click the project and choose Properties. 2. On the Sources page, select "test" under Test Package Folders and click Remove. 3. On the Libraries page, click the Compile Tests tab, select each of the two Junit libraries and click Remove. 4. Click OK. Is that correct? I don't see any menu item for "Test Dependencies" anywhere. Thank you.
(In reply to comment #3) > 1. Right-click the project and choose Properties. > 2. On the Sources page, select "test" under Test Package Folders and click > Remove. > 3. On the Libraries page, click the Compile Tests tab, select each of the two > Junit libraries and click Remove. > 4. Click OK. Correct. You probably also want to physically delete the (presumably empty) test subdir in the Files tab after unregistering it in Test Package Folders. > I don't see any menu item for "Test Dependencies" anywhere. There should be a node by that name in the Projects view; you can also right-click that to jump to the right panel for #3.
In the 2/3 build (I reverted to it to make these fixes), the nodes in a project that has a test directory are Test Packages and Test Libraries, not Test Dependencies. Has that changed?
Sorry, Test Libraries then.
By the way for newly created projects see bug #195254.