Inspect in memory hsqldb while debugging

后端 未结 8 2160
面向向阳花
面向向阳花 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:15

    Run your unit test to a breakpoint, then in the Debug perspective of Eclipse, open the Display view (Window, Show View, Display) and enter

        org.hsqldb.util.DatabaseManagerSwing.main(new String[] {
      "--url",  "jdbc:hsqldb:mem:testdb", "--noexit"
    });
    

    (as per dimdm's post), highlight it, right-click and choose Execute.

提交回复
热议问题