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