• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to test HibernateDAO????

 
gopal kishan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using Hibernate with JSF. I have written my DAO, now i want to test my DAO.

I have written Testcase for my DAO. can you tell me how to run the testcase.
i am using eclipse and i placed junit.jar also. i dont know how to specify my mapping file and others.

This is my code;



please let me know , how to test this???

thanks in advance
kishan

[message edited to add code tags - Paul Sturrock]
[ January 20, 2006: Message edited by: Paul Sturrock ]
 
Dave Tuttle
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put your hibernate config file on your 'run test' classpath, and your log4j config file too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic