This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to do unit testing against a MS Access 2007 Database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to do unit testing against a MS Access 2007 Database?" Watch "How to do unit testing against a MS Access 2007 Database?" New topic
Author

How to do unit testing against a MS Access 2007 Database?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 580
Tried DBUnit. But the exporting doesn't work.
Any other good software that is free for this purpose?
Thanks
Jack
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Jack,
You can use pure JUnit and test your JDBC code. Beyond that, what features are you looking for?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 580
Jeanne Boyarsky wrote:Jack,
You can use pure JUnit and test your JDBC code. Beyond that, what features are you looking for?


Hello,

Do I test them one by one (the attributes inside a record) like this

void TestRetrieveRecord()
{
PatientRec r;
// Get the record
assertEquals(r.getFirstName(), "Peter");
assertEquals(r.getLastName(), "Jones");
}

Doing this one by one can be quite tedious. I am looking for a more convenient way
Thanks
Jack
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 580
Any suggestions?
Thanks
Jack
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to do unit testing against a MS Access 2007 Database?