src/test/java/ru/indvdum/jpa/tests/AbstractJPATest.java
author indvdum (gotoindvdum[at]gmail[dot]com)
Sun, 11 Nov 2012 03:17:06 +0400
changeset 8 eec474867dbe
parent 6 180decac2433
permissions -rw-r--r--
Some strange with Eclipse
     1 package ru.indvdum.jpa.tests;
     2 
     3 import org.junit.BeforeClass;
     4 
     5 import ru.indvdum.jpa.dao.JPAPropertySelector;
     6 import ru.indvdum.jpa.init.DatabaseInitializer;
     7 
     8 /**
     9  * @author indvdum (gotoindvdum[at]gmail[dot]com)
    10  * @since 22.12.2011 16:44:26
    11  * 
    12  */
    13 public abstract class AbstractJPATest {
    14 
    15 	@BeforeClass
    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();
    21 	}
    22 
    23 }