Re: [h2] how do i stop in-memory h2 instance (in junit)

2014-03-16 Thread Thomas Mueller
Hi, > 1- have a jdbc connect url like: "jdbc:h2:mem" You have a typo, it should be: "jdbc:h2:mem:". The last ":" is important. Regards, Thomas On Thu, Feb 27, 2014 at 10:59 AM, the blue mountain < thebluemount...@gmail.com> wrote: > Hi, > > I am using h2 in-memory for junit (4.x) tests. > Bas

[h2] how do i stop in-memory h2 instance (in junit)

2014-02-27 Thread the blue mountain
Hi, I am using h2 in-memory for junit (4.x) tests. Basically, i'm expecting the following pattern: 1- have a jdbc connect url like: "jdbc:h2:mem" 2- @Before: get jdbc connection, then create schema / tables / indexes / ... insert rows 3- run the test 1- @After: close jdbc connection I noticed