Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried DBUnit. But the exporting doesn't work.
Any other good software that is free for this purpose?
Thanks
Jack
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jack,
You can use pure JUnit and test your JDBC code. Beyond that, what features are you looking for?
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions?
Thanks
Jack
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic