Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Test

 
Neil Muya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

My Team is currently developing a WebApp , and my part is with the DAO Implementations.

Currently what I am doing is, after I finish creating a hibernate dao, I run the webapp,
and run debug mode in eclipse in order to test if what I have done is correct.

My question is, Is there a way to test this hibernate dao's without running the webapp,
Well i know that on start of the webapp the web.xml will be loaded and hibernate config as well.

But is there a workaround so that I can just run a java app in order to test what I have done?
like a static main method that could test the hibernate dao?

Thanks and Regards,
 
Gaurav Tripathi
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have built the DAO layer with JPA then you can easily test the application (DAO part) as standalone. Only thing you need to tweak is Persistence configuration part.
 
akshit kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can check the dao by running the application directly through a simple.java class and pas parameters there
anyone having any better method for this... :
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic