Question : Eclipse - test package appears as folder.

I am working with source code that has been stored in clearcase and developed with eclipse.. However, when I import the source code into eclipse, the test package appears as a folder and therefore all the test cases in the package appear with an error for package name.
It seems to be a problem with eclipse settings that a test directory is automatically treated as a folder rather than a package.  Is there a way of changing this?

Answer : Eclipse - test package appears as folder.

Just go to the Project Properties to the "Java Build Path" section, select the "Source" tab and add the test folder to the list of source directories.
Random Solutions  
 
programming4us programming4us