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 66
77import  java .util .List ;
88
9+ import  org .hibernate .community .dialect .InformixDialect ;
910import  org .hibernate .dialect .SybaseASEDialect ;
1011
1112import  org .hibernate .testing .orm .junit .JiraKey ;
1213import  org .hibernate .testing .orm .junit .DomainModel ;
1314import  org .hibernate .testing .orm .junit .SessionFactory ;
1415import  org .hibernate .testing .orm .junit .SessionFactoryScope ;
1516import  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 ;
1719import  org .junit .jupiter .api .Test ;
1820
1921import  jakarta .persistence .Entity ;
3032@ SessionFactory 
3133@ JiraKey (value  = "HHH-15766" )
3234@ 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" )
3336public  class  HqlUnionTest  {
3437
35- 	@ BeforeAll 
38+ 	@ BeforeEach 
3639	public  void  setUp (SessionFactoryScope  scope ) {
3740		scope .inTransaction (
3841				session  -> {
@@ -47,6 +50,11 @@ public void setUp(SessionFactoryScope scope) {
4750		);
4851	}
4952
53+ 	@ AfterEach 
54+ 	public  void  tearDown (SessionFactoryScope  scope ) {
55+ 		scope .getSessionFactory ().getSchemaManager ().truncate ();
56+ 	}
57+ 
5058	@ Test 
5159	public  void  testUnionQueryWithOrderBy (SessionFactoryScope  scope ) {
5260		scope .inTransaction (
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments