• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unit Testing tool -> Struts + Hiberante

 
kri shan
Ranch Hand
Posts: 1462
  • 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: 34207
341
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: 1462
  • 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: 34207
341
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