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.
I had created a new project using the default package name for NetBeans (i.e. the project name). I then created a new file and selected for "Location" in the wizard "Source Packages" and the created package showed up in the drop-down for "Package". However, when I created a new file and select for its "Location" to put it into "Test Packages" only the "Default Package" appears but not the one NetBeans created from the project name. It is common practise to have unit tests in the same package but in a separate directory since that allows unit testing of package-level methods. It is not nice to have to go back and look up the name of the package you were using. While this can be worked around with not too much difficulty, this is really basic functionality that should work and would be commonly used.
Created attachment 50996 [details] displays existing source pkg
Created attachment 50997 [details] when selecting test does not show existing source packages
I guess I should rephrase this as that packages that exist as source aren't being offered when creating a file for test. Existing source packages should be listed when creating a test file, and then created if in fact they don't exist within test yet. I suppose this could be argued that this is a request for an enhancement but I'd disagree because this is pretty basic stuff.
Reassigning to openide - wizards for evaluation.
The package chooser displays only existing packages, populating the test packages chooser by test packages and source packages should be even worse from the UI point of view. I am reassigning it to UI to evaluate. By the way you can generate an unit test in NetBeans in much simpler way: Select java file in project's view and in it's pop up select Tools/Create JUnit tests (shortcut Ctrl+Shift+U).