HHH-17370 Add test for issue

This commit is contained in:
Andrea Boriero 2023-11-06 17:10:50 +01:00 committed by Andrea Boriero
parent 1efc90754e
commit 5d5e413908
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package org.hibernate.orm.test.connections;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.testing.orm.junit.DomainModel;
import org.hibernate.testing.orm.junit.Jira;
import org.hibernate.testing.orm.junit.ServiceRegistry;
import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope;
import org.hibernate.testing.orm.junit.Setting;
import org.junit.jupiter.api.Test;
@DomainModel
@SessionFactory
@ServiceRegistry(
settings = @Setting( name = AvailableSettings.CONNECTION_HANDLING, value = "IMMEDIATE_ACQUISITION_AND_HOLD")
)
@Jira( "HHH-17370" )
public class ImmediatAcqusitionAndHoldConnectionHandlingModeTest {
@Test
public void testIt(SessionFactoryScope scope){
// this is enough to reproduce the issue
}
}