File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
hibernate-c3p0/src/test/java/org/hibernate/test/c3p0 Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1313
1414import org .hibernate .c3p0 .internal .C3P0ConnectionProvider ;
1515import org .hibernate .cfg .Environment ;
16+ import org .hibernate .dialect .SybaseASEDialect ;
1617import org .hibernate .engine .jdbc .env .internal .JdbcEnvironmentInitiator .ConnectionProviderJdbcConnectionAccess ;
1718import org .hibernate .engine .jdbc .spi .JdbcServices ;
1819
1920import org .hibernate .testing .orm .junit .JiraKey ;
2021import org .hibernate .testing .junit4 .BaseCoreFunctionalTestCase ;
22+ import org .hibernate .testing .orm .junit .SkipForDialect ;
2123import org .junit .Test ;
2224
2325import static org .hibernate .testing .junit4 .ExtraAssertions .assertTyping ;
2729/**
2830 * @author Strong Liu
2931 */
32+ @ SkipForDialect (dialectClass = SybaseASEDialect .class ,
33+ reason = "JtdsConnection.isValid not implemented" )
3034public class C3P0ConnectionProviderTest extends BaseCoreFunctionalTestCase {
3135
3236 @ Override
Original file line number Diff line number Diff line change 88import org .hibernate .boot .registry .StandardServiceRegistryBuilder ;
99import org .hibernate .c3p0 .internal .C3P0ConnectionProvider ;
1010import org .hibernate .community .dialect .AltibaseDialect ;
11+ import org .hibernate .dialect .SybaseASEDialect ;
1112import org .hibernate .dialect .TiDBDialect ;
1213import org .hibernate .engine .jdbc .connections .spi .ConnectionProvider ;
1314import org .hibernate .service .spi .ServiceRegistryImplementor ;
2122 */
2223@ SkipForDialect (value = TiDBDialect .class , comment = "Doesn't support SERIALIZABLE isolation" )
2324@ SkipForDialect (value = AltibaseDialect .class , comment = "Altibase cannot change isolation level in autocommit mode" )
25+ @ SkipForDialect (value = SybaseASEDialect .class , comment = "JtdsConnection.isValid not implemented" )
2426public class C3p0TransactionIsolationConfigTest extends BaseTransactionIsolationConfigTest {
2527 private StandardServiceRegistry ssr ;
2628
Original file line number Diff line number Diff line change 99import jakarta .persistence .criteria .CriteriaBuilder ;
1010import jakarta .persistence .criteria .CriteriaQuery ;
1111
12+ import org .hibernate .dialect .SQLServerDialect ;
13+ import org .hibernate .dialect .SybaseASEDialect ;
14+ import org .hibernate .testing .orm .junit .SkipForDialect ;
1215import org .junit .Assert ;
1316import org .junit .Test ;
1417
2023 *
2124 * @author Shawn Clowater
2225 */
26+ @ SkipForDialect (dialectClass = SybaseASEDialect .class ,
27+ reason = "JtdsConnection.isValid not implemented" )
2328public class StatementCacheTest extends BaseCoreFunctionalTestCase {
2429 @ Test
2530 @ JiraKey (value = "HHH-7193" )
31+ @ SkipForDialect (dialectClass = SQLServerDialect .class ,
32+ reason = "started failing after upgrade to c3p0 0.10" )
2633 public void testStatementCaching () {
2734 inSession (
2835 session -> {
@@ -56,7 +63,8 @@ public void testStatementCaching() {
5663 }
5764 );
5865
59- //only one entity should have been inserted to the database (if the statement in the cache wasn't cleared then it would have inserted both entities)
66+ // only one entity should have been inserted to the database
67+ // (if the statement in the cache wasn't cleared then it would have inserted both entities)
6068 inTransaction (
6169 session -> {
6270 CriteriaBuilder criteriaBuilder = session .getCriteriaBuilder ();
You can’t perform that action at this time.
0 commit comments