This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unit Testing tool -> Struts + Hiberante

 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Struts + Hibernate. Which unit testing is the best option ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kri,
It depends on how you define "unit test." To test the logic without the server, you can test the classes using JUnit.

To test the web application end to end, you can use JWebUnit.
 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne, I am going to test the application with server for unit testing.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then it's actually not unit testing, I'd say - but who cares....
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:
Then it's actually not unit testing, I'd say - but who cares....

That's why I said it depends on the definition of "unit test"

Kri,
JWebUnit or Cactus can be used to test the actual webpages. JWebUnit appears to be a little friendlier to use, but either is ok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic