Hacker News new | ask | show | jobs
by anthonybsd 3977 days ago
Hmm, I'm actually on PostgreSQL right now using H2, this might come useful. Thanks.
1 comments

Just add the Maven dependency and see their own tests for an example:

https://github.com/airlift/testing-postgresql-server/blob/ma...

https://github.com/airlift/testing-mysql-server/blob/master/...

Though you want to use @BeforeClass / @AfterClass or similar rather than creating one for each test.