Inspect in memory hsqldb while debugging

后端 未结 8 2183
面向向阳花
面向向阳花 2020-12-12 13:18

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

8条回答
  •  我在风中等你
    2020-12-12 14:16

    This worked for me:

    DatabaseManager.threadedDBM();
    Thread.sleep(Long.MAX_VALUE);
    

    from https://stackoverflow.com/a/13732467/32453

    It's just the "non swing" variety DatabaseManager and prompts you for a JDBC connection string. The swing one doesn't have an equivalent method I don't think.

提交回复
热议问题