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

Testing JUnit in JDBC

 
shuba gopal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am learning to test JDBC in JUnit. Can someone please tell me if the method of creating Mock Connection objects as given in "Junit in Action" book is still used.

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on what you want to test. If you don't want to test with a real database, it is a legitimate thing to do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic