This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.