File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/query/hql Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 25
25
import org .hibernate .testing .orm .junit .SessionFactory ;
26
26
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
27
27
import org .hibernate .testing .orm .junit .SkipForDialect ;
28
- import org .junit .jupiter .api .BeforeAll ;
28
+ import org .junit .jupiter .api .AfterEach ;
29
+ import org .junit .jupiter .api .BeforeEach ;
29
30
import org .junit .jupiter .api .Test ;
30
31
31
32
import static org .hamcrest .CoreMatchers .anyOf ;
45
46
@ SessionFactory
46
47
public class StandardFunctionTests {
47
48
48
- @ BeforeAll
49
+ @ BeforeEach
49
50
public void prepareData (SessionFactoryScope scope ) {
50
51
scope .inTransaction (
51
52
em -> {
@@ -60,6 +61,11 @@ public void prepareData(SessionFactoryScope scope) {
60
61
);
61
62
}
62
63
64
+ @ AfterEach
65
+ public void truncateDate (SessionFactoryScope scope ) {
66
+ scope .getSessionFactory ().getSchemaManager ().truncate ();
67
+ }
68
+
63
69
@ Test
64
70
public void currentTimestampTests (SessionFactoryScope scope ) {
65
71
scope .inTransaction (
You can’t perform that action at this time.
0 commit comments