title: DB backend webapp testing in java [tool needed]
body: <p>I want to create a test suit for my java web application. Its a JSP applications with JDBC connectivity . My requirements are as follows,</p>
  
  <p>1 - I should be able to test my database logic (Queries etc) through my models. </p>
  
  <p>2 - Its great if i could test my .jsp pages as well (if possible)</p>
  
  <p>After doing some research I found that DBUnit is good for database backend system testing, but unfortunately i couldnt find any good resource as a starter</p>
  
  <p>What are you all think about testing options I have and it would be great if you could post some links to resources/ examples as well</p>
  
  <p>EDIT: </p>
  
  <p>and I have come across with mock objects (like JMock..), wonder I could use it as a replacement for DBUnit ?</p>
  
  <p>thanks in advance</p>
  
  <p>cheers</p>
  
  <p>sameera  </p>