Is there any way that i need not write junit test cases and it gets generated automatically.
Actually i have an application which is fully tested but has no junit written for it. So i am sure that it is complete and has not much error. But my client wants a code coverage report for the same.
Is there any tool available which can generate test cases automatically.
I am using java, jboss portal.
Writing the unit tests for the sake of writing or for coverage is a bad idea. Unit tests should be written to actually test your code. In your situation you could start writing the tests for the more important classes first and then gradually work towards increasing the code coverage. You might even find some real bugs in this process.