Skip to content

Instantly share code, notes, and snippets.

@skrymets
skrymets / AbstractTest.java
Created July 11, 2018 12:17
Dump H2 DB in JUnit tests
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;