| 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-- |
| indvdum@2 | 1 |
package ru.indvdum.jpa.tests; |
| indvdum@2 | 2 |
|
| indvdum@2 | 3 |
import org.junit.BeforeClass; |
| indvdum@2 | 4 |
|
| indvdum@6 | 5 |
import ru.indvdum.jpa.dao.JPAPropertySelector; |
| indvdum@5 | 6 |
import ru.indvdum.jpa.init.DatabaseInitializer; |
| indvdum@2 | 7 |
|
| indvdum@2 | 8 |
/** |
| indvdum@2 | 9 |
* @author indvdum (gotoindvdum[at]gmail[dot]com) |
| indvdum@2 | 10 |
* @since 22.12.2011 16:44:26 |
| indvdum@2 | 11 |
* |
| indvdum@2 | 12 |
*/ |
| indvdum@2 | 13 |
public abstract class AbstractJPATest {
|
| indvdum@2 | 14 |
|
| indvdum@2 | 15 |
@BeforeClass |
| indvdum@2 | 16 |
public static void setUpClass() throws Exception {
|
| indvdum@6 | 17 |
JPAPropertySelector.setSystemProperty(JPAPropertySelector.RUNTIMEENHANCEMENT, "supported"); |
| indvdum@6 | 18 |
JPAPropertySelector.setSystemProperty(JPAPropertySelector.SHOWSQL, "true"); |
| indvdum@6 | 19 |
JPAPropertySelector.setSystemProperty(JPAPropertySelector.SYNCHRONIZEDB, "true"); |
| indvdum@5 | 20 |
DatabaseInitializer.init(); |
| indvdum@2 | 21 |
} |
| indvdum@2 | 22 |
|
| indvdum@2 | 23 |
} |