I\'ve joined a project that has a lot of files with SQL statements for creating a database that is used for integration testing.
I\'m wondering how I can use these f
Why not create an on-disk H2 database, and have each test access it? So long as the tests don't run in parallel or interact with each other, you don't need a server.
Even more so: just create memory databases in @Before and delete them in @After. Are you sure that's too slow?
In pre-integration-test, you could launch an H2 (or derby) server, and shut it down in post-integration-test.
You can write a maven plugin that uses session state to keep track of an embedded database service, but that's much the same as (3).