Inspect in memory hsqldb while debugging

Posted by Albert on Stack Overflow See other posts from Stack Overflow or by Albert
Published on 2010-04-23T09:03:38Z Indexed on 2010/04/23 10:53 UTC
Read the original article Hit count: 351

Filed under:
|
|

We're using hdsqldb in memory to run junit tests which operate against a database. The db is setup before running each test via a spring configuration. All works fine. Now when a tests fails it can be convinient to be able to inspect the values in the in memory database. Is this possible? If so how? Our url is:

jdbc.url=jdbc:hsqldb:mem:testdb;sql.enforce_strict_size=true

The database is destroyed after each tests. But when the debugger is running the database should also still be alive. I've tried connecting with the sqldb databaseManager. That works, but I don't see any tables or data. Any help is highly appreciated!

© Stack Overflow or respective owner

Related posts about java

Related posts about hsqldb