This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
JTest can generate constructor test method but can't generate user define test method. Because I need test case class source,not only the test report(like html report).So I need have to search other test tool.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Yashnoo, What version of JTest are you using? Are you using it as a plugin or standalone?
In JTest 4.5, there was an option to generate their tests in junit form. It didn't work well when stubs were involved though. In JTest 5.1, the tests are better generated standalone. In Eclipse/WSAD, they are generated straight into your workspace. I find this useful because you can run the black box tests along with white box tests.
Regardless (as pointed out in your other thread), these junit tests do not eliminate the need to write junit tests by hand. They do provide a quick way of getting some basic tests (like for nulls) on legacy code.