File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/query/hql Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import java .util .List ;
8
8
9
+ import org .hibernate .community .dialect .InformixDialect ;
9
10
import org .hibernate .dialect .SybaseASEDialect ;
10
11
11
12
import org .hibernate .testing .orm .junit .JiraKey ;
12
13
import org .hibernate .testing .orm .junit .DomainModel ;
13
14
import org .hibernate .testing .orm .junit .SessionFactory ;
14
15
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
15
16
import org .hibernate .testing .orm .junit .SkipForDialect ;
16
- import org .junit .jupiter .api .BeforeAll ;
17
+ import org .junit .jupiter .api .AfterEach ;
18
+ import org .junit .jupiter .api .BeforeEach ;
17
19
import org .junit .jupiter .api .Test ;
18
20
19
21
import jakarta .persistence .Entity ;
30
32
@ SessionFactory
31
33
@ JiraKey (value = "HHH-15766" )
32
34
@ SkipForDialect (dialectClass = SybaseASEDialect .class , reason = "Sybase ASE does not support order by in subqueries" )
35
+ @ SkipForDialect (dialectClass = InformixDialect .class , reason = "Informix does not support order by in subqueries" )
33
36
public class HqlUnionTest {
34
37
35
- @ BeforeAll
38
+ @ BeforeEach
36
39
public void setUp (SessionFactoryScope scope ) {
37
40
scope .inTransaction (
38
41
session -> {
@@ -47,6 +50,11 @@ public void setUp(SessionFactoryScope scope) {
47
50
);
48
51
}
49
52
53
+ @ AfterEach
54
+ public void tearDown (SessionFactoryScope scope ) {
55
+ scope .getSessionFactory ().getSchemaManager ().truncate ();
56
+ }
57
+
50
58
@ Test
51
59
public void testUnionQueryWithOrderBy (SessionFactoryScope scope ) {
52
60
scope .inTransaction (
You can’t perform that action at this time.
0 commit comments