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 2525import  org .hibernate .testing .orm .junit .SessionFactory ;
2626import  org .hibernate .testing .orm .junit .SessionFactoryScope ;
2727import  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 ;
2930import  org .junit .jupiter .api .Test ;
3031
3132import  static  org .hamcrest .CoreMatchers .anyOf ;
4546@ SessionFactory 
4647public  class  StandardFunctionTests  {
4748
48- 	@ BeforeAll 
49+ 	@ BeforeEach 
4950	public  void  prepareData (SessionFactoryScope  scope ) {
5051		scope .inTransaction (
5152				em  -> {
@@ -60,6 +61,11 @@ public void prepareData(SessionFactoryScope scope) {
6061		);
6162	}
6263
64+ 	@ AfterEach 
65+ 	public  void  truncateDate (SessionFactoryScope  scope ) {
66+ 		scope .getSessionFactory ().getSchemaManager ().truncate ();
67+ 	}
68+ 
6369	@ Test 
6470	public  void  currentTimestampTests (SessionFactoryScope  scope ) {
6571		scope .inTransaction (
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments