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.
.) Create a Maven/Maven Quickstart project (or any other project) .) Remove src/test folder in Files view (.) Run Build to refresh the view, so Test Packages disappears, see ISSUE# 96264) .) Create a java class .) Click on java class/Tools/create Junit Test -> Error shown, that no test folder could be found. Better repsonse would be: A dialoge should open, showing the error and asking if the test folder should be created in order to creat test. Reason: A programming beginner might not be aware of the special notation, where and how test folders should be created. e.g. Netbeans expects a test folder to be configured in the project properties for J2SE/Web... projects, but where are they to be configured in maven? And how do they look like. And even in possible future java projects that might change too. Therefore a dialogue could reduce the expected knowledge and increase usability.
more likely a bug
most likely the cooperation of the junit module would be required here. Not sure it's feasible to do for 6.0
partially workarounded/fixed by creating the src/main/java and src/test/java folders on creation of a new project. Won't influence behaviour of any existing projects though.
the issue is less visible now as the new project wizard creates the folders -> ENHANCEMENT
Duplicated by http://jira.codehaus.org/browse/MEVENIDE-635
test folder will be automatically created when needed now. http://hg.netbeans.org/main/rev/e2a4b4dc410a still leaving open as we should stop creating the empty test folders on project creation now..
Change of the default owner.
Not sure what the new problem is, but original problem seems fixed to me.
core-main #90dfdf5c376f
Integrated into 'main-golden', will be available in build *201008200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/90dfdf5c376f User: Jesse Glick <jglick@netbeans.org> Log: #96266: Stop creating empty test folders on project creation