This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Any tool to generate Junit class from a java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Any tool to generate Junit class from a java class" Watch "Any tool to generate Junit class from a java class" New topic
Author

Any tool to generate Junit class from a java class

Ram Korutla
Ranch Hand

Joined: Dec 24, 2007
Posts: 80
Hi All,

My question looks weird and no-sense to myself already , but here I go..I would like to know if there is any tool that does the creation of Junit class for the methods in a java class. A method might have different processing steps. So is there a tool that creates the JUnit test case for a method.

Thanks
Ram
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
Try commercial IDE's like MyEclipse (not sure)
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Ram,
Some tools like Parasoft JTest do. However, I don't find the tests they generate to be useful. A human is needed to make the tests good.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any tool to generate Junit class from a java class
 
Similar Threads
Test Case generation tools required
Bng_j2ee testing tools
Webservice and JUnit
HTTP Unit and Java 5
Junit test on servers