lundi 16 novembre 2015

Postgres lightweight database for testing purpose

What is the easiest way to initialize some lightweight PostgreSQL instance (probably in some temp directory) from java code. I need some temporary database for running the test; so best way will be to create/drop that cluster (database) before/after running the tests.

Is there some java library for that? Is it possible with pure java code, without external scripts?

My stack is Java, Maven, jetty, TestNG, PostgreSQL.

Aucun commentaire:

Enregistrer un commentaire