Mock JDBC driver not worth it
Posted by: Michael Slatterys Weblog,
on 02 Nov 2005 |
View original
I think mocking DAOs is better than mocking a JDBC driver.
A while back I wrote a
blog entry
that described an initial design of a JDBC driver that would be useful for mocking. It would use a cache stored in XML format. It would even support insert/update/delete (by having multiple cache 'states').
I put off writing the driver and instead used HSQLDB + DbUnit. It worked ok, but I was not satisfied with performance and the startup time of Hibernate. I was also too lazy to implement the driver...