src/test/java/ru/indvdum/jpa/tests/AbstractJPATest.java
author indvdum (gotoindvdum[at]gmail[dot]com)
Sun, 23 Dec 2012 03:24:53 +0400
changeset 20 a05948e9458c
parent 6 180decac2433
permissions -rw-r--r--
Interface type of fields processing
     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 }