use of org.hibernate.c3p0.internal.C3P0ConnectionProvider in project hibernate-orm by hibernate.
the class C3P0ConnectionProviderTest method testIsolationPropertyCouldBeEmpty.
@Test
@TestForIssue(jiraKey = "HHH-9498")
public void testIsolationPropertyCouldBeEmpty() {
C3P0ConnectionProvider provider = new C3P0ConnectionProvider();
try {
Properties configuration = new Properties();
configuration.setProperty(Environment.ISOLATION, "");
provider.configure(configuration);
} finally {
provider.stop();
}
}
use of org.hibernate.c3p0.internal.C3P0ConnectionProvider in project hibernate-orm by hibernate.
the class C3p0TransactionIsolationConfigTest method getConnectionProviderUnderTest.
@Override
protected ConnectionProvider getConnectionProviderUnderTest() {
C3P0ConnectionProvider provider = new C3P0ConnectionProvider();
provider.injectServices((ServiceRegistryImplementor) ssr);
return provider;
}
use of org.hibernate.c3p0.internal.C3P0ConnectionProvider in project hibernate-orm by hibernate.
the class C3P0ConnectionProviderTest method testC3P0isDefaultWhenThereIsC3P0Properties.
@Test
public void testC3P0isDefaultWhenThereIsC3P0Properties() {
JdbcServices jdbcServices = serviceRegistry().getService(JdbcServices.class);
ConnectionProviderJdbcConnectionAccess connectionAccess = assertTyping(ConnectionProviderJdbcConnectionAccess.class, jdbcServices.getBootstrapJdbcConnectionAccess());
assertTrue(connectionAccess.getConnectionProvider() instanceof C3P0ConnectionProvider);
}
Aggregations