Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Last active February 19, 2020 12:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaeltuelho/fe902371866d4642e081 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/fe902371866d4642e081 to your computer and use it in GitHub Desktop.
Trick to inspect an inMemory HSQLDB/H2 instance during a Unit Testing Debug inside the Eclipse IDE...
  1. add a Breakpoint to your TestCase code
  2. start your jUnit Test in Debug mode
  3. Open the Display View (Window menu > Show view > Display)
  4. paste the following snippet into the Display view
org.hsqldb.util.DatabaseManagerSwing.main(new String[] {
  "--url",  "jdbc:hsqldb:mem:testdb", "--noexit"
});
  1. Select the snippet code
  2. In the top right side of the Display View box click on the Green arrow icon (Execute the selected Text)
  3. Enjoy your HSQLDB Manager GUI! alt text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment