This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Testing and the fly likes Testing JUnit in JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing JUnit in JDBC" Watch "Testing JUnit in JDBC" New topic
Author

Testing JUnit in JDBC

shuba gopal
Ranch Hand

Joined: May 12, 2011
Posts: 76
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

Joined: May 26, 2003
Posts: 32636
    
215

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing JUnit in JDBC
 
It's not a secret anymore!