DISQUS

Community Page on DISQUS

what is this?

Jump to original thread »
Author

Using HSqlDb for in-memory DAO tests

Started by jhannes · 3 months ago

Spring has shown us how to effectively separate the business logic from data access logic. This allows for easy testing of business logic without having to deal with the database, but it does not provide any easy way to test the DAO code. A new feature in the Hypersonic database might just be what ... Continue reading »

2 comments

  • I'm having trouble getting it to work. I keep getting
    PreparedStatementCallback; bad SQL grammar
    Any ideas?
  • Be sure that your test database is initialized and packed properly. Also notice that the test data HAS to be packaged in a JAR file. Just adding a directory to your class path is not sufficient.

Add New Comment

Returning? Login