• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

testing jdbc CRUD operations

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
Am developing a sample user management application .

Using simple JDBC code to do insert / update / deletes

For some years now have never used Junit or any of the test driven methods .

Now I would like to drive my code using tests .

I tried reading about DBUnit but am not understanding much .

My question is :
Should JDBC CRUD operation code be tested manually or using some tool ?
( I agree that manual is error prone - but am facing huge issues just to come up with an approach for TDD )

what would be the right tool ?
Thanks ,
~satish
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Satish,
There is a middle ground between manual testing and tdd - which is writing the code and the tests. I recommend writing one (or a few) integration tests that go through to the database layer for existing code. Once you have that comfort level with the tools, it will be easier to switch to tdd.

Although personally, I only use TDD for unit testing and not integration testing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic