Or you could use the mockobjects project (www.mockobjects.com) to write JUnit testcases which require no physical database connection. You can set up the sql statements you expect your code to execute and the data you expect to be returned. Using mock objects you can also simulate database failure cases without pulling out network cables, killing the database etc ;) Take a look at the paper http://www.mockobjects.com/papers/jdbc_testfirst.html
-----Original Message----- From: Ralph Einfeldt [mailto:ralph.einfeldt@;uptime-isc.de] Sent: 30 October 2002 13:00 To: Tomcat Users List Subject: RE: OFF-TOPIC: testing The short answer is yes. The longer answer is that we have scripts that sets up a site and a database with a well defined content (that's done in less than 2 minutes) from scratch and run our testcases against that site and database. > -----Original Message----- > From: Felipe Schnack [mailto:felipes@;ritterdosreis.br] > Sent: Wednesday, October 30, 2002 12:33 PM > To: Tomcat Users List > Subject: OFF-TOPIC: testing > > I mean, you insert test data in the test case? > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
