Rollback transaction on fail test. Check existed entities count.
1 package ru.indvdum.jpa.tests;
3 import org.junit.BeforeClass;
5 import ru.indvdum.jpa.dao.JPAPropertySelector;
6 import ru.indvdum.jpa.init.DatabaseInitializer;
9 * @author indvdum (gotoindvdum[at]gmail[dot]com)
10 * @since 22.12.2011 16:44:26
13 public abstract class AbstractJPATest {
16 public static void setUpClass() throws Exception {
17 JPAPropertySelector.setSystemProperty(JPAPropertySelector.RUNTIMEENHANCEMENT, "supported");
18 JPAPropertySelector.setSystemProperty(JPAPropertySelector.SHOWSQL, "true");
19 JPAPropertySelector.setSystemProperty(JPAPropertySelector.SYNCHRONIZEDB, "true");
20 DatabaseInitializer.init();