cbeust/testng — Issue #129: Wrong source folder default in "New TestNG class" wizard
Author: franco-conte777
Created: 2011-11-11 16:19:18+00:00
State: open

You have a project called "AAA" with a source folder called "src"
You create a package called "com.foo.bar"
You want to create a new TestNG class in "bar" so you select the "bar" folder and bring up the "New TestNG class" wizard
You will notice that the "Source Folder" by default gets set to "\AAA\src\com\foo" (and "Package:" to "com.foo.bar")
If you go ahead it will create a package called "com.foo.bar" ***inside*** the "com.foo" package.
I think this is wrong, as it should just create the new TestNG class inside "com.foo.bar", without creating additional folders.

The Eclipse "New Class" wizard in this case (i.e. when you select the 'bar' folder) will default the "Source Folder" to "AAA/src", the "Package:" to "com.foo.bar" and create the new class in "bar"