Mock JDBC driver not worth it

Posted by: Michael Slatterys Weblog, on 02 Nov 2005 | View original | Bookmarked: 0 time(s)

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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1638 | Hits: 35

Similar Posts

  • Successive Method Calls With MoQ more
  • Linq to Mocks is finally born more
  • Mocking indexer setters with Moq more
  • Don't be afraid of complex constraints more
  • Making WCF services amenable to testing more
  • Moq 3.0 RTM!!! more
  • Making extension methods amenable to mocking more
  • Evolving an API without breaking clients via extension methods, ObsoleteAttribute and EditorBrowsableAttribute more
  • Connect WebSphere and Java applications to SQL Server more
  • Simplicity is key to successful unit testing - Part 2 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD