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 13
13
14
14
import org .hibernate .c3p0 .internal .C3P0ConnectionProvider ;
15
15
import org .hibernate .cfg .Environment ;
16
+ import org .hibernate .dialect .SybaseASEDialect ;
16
17
import org .hibernate .engine .jdbc .env .internal .JdbcEnvironmentInitiator .ConnectionProviderJdbcConnectionAccess ;
17
18
import org .hibernate .engine .jdbc .spi .JdbcServices ;
18
19
19
20
import org .hibernate .testing .orm .junit .JiraKey ;
20
21
import org .hibernate .testing .junit4 .BaseCoreFunctionalTestCase ;
22
+ import org .hibernate .testing .orm .junit .SkipForDialect ;
21
23
import org .junit .Test ;
22
24
23
25
import static org .hibernate .testing .junit4 .ExtraAssertions .assertTyping ;
27
29
/**
28
30
* @author Strong Liu
29
31
*/
32
+ @ SkipForDialect (dialectClass = SybaseASEDialect .class ,
33
+ reason = "JtdsConnection.isValid not implemented" )
30
34
public class C3P0ConnectionProviderTest extends BaseCoreFunctionalTestCase {
31
35
32
36
@ Override
Original file line number Diff line number Diff line change 8
8
import org .hibernate .boot .registry .StandardServiceRegistryBuilder ;
9
9
import org .hibernate .c3p0 .internal .C3P0ConnectionProvider ;
10
10
import org .hibernate .community .dialect .AltibaseDialect ;
11
+ import org .hibernate .dialect .SybaseASEDialect ;
11
12
import org .hibernate .dialect .TiDBDialect ;
12
13
import org .hibernate .engine .jdbc .connections .spi .ConnectionProvider ;
13
14
import org .hibernate .service .spi .ServiceRegistryImplementor ;
21
22
*/
22
23
@ SkipForDialect (value = TiDBDialect .class , comment = "Doesn't support SERIALIZABLE isolation" )
23
24
@ SkipForDialect (value = AltibaseDialect .class , comment = "Altibase cannot change isolation level in autocommit mode" )
25
+ @ SkipForDialect (value = SybaseASEDialect .class , comment = "JtdsConnection.isValid not implemented" )
24
26
public class C3p0TransactionIsolationConfigTest extends BaseTransactionIsolationConfigTest {
25
27
private StandardServiceRegistry ssr ;
26
28
Original file line number Diff line number Diff line change 9
9
import jakarta .persistence .criteria .CriteriaBuilder ;
10
10
import jakarta .persistence .criteria .CriteriaQuery ;
11
11
12
+ import org .hibernate .dialect .SQLServerDialect ;
13
+ import org .hibernate .dialect .SybaseASEDialect ;
14
+ import org .hibernate .testing .orm .junit .SkipForDialect ;
12
15
import org .junit .Assert ;
13
16
import org .junit .Test ;
14
17
20
23
*
21
24
* @author Shawn Clowater
22
25
*/
26
+ @ SkipForDialect (dialectClass = SybaseASEDialect .class ,
27
+ reason = "JtdsConnection.isValid not implemented" )
23
28
public class StatementCacheTest extends BaseCoreFunctionalTestCase {
24
29
@ Test
25
30
@ JiraKey (value = "HHH-7193" )
31
+ @ SkipForDialect (dialectClass = SQLServerDialect .class ,
32
+ reason = "started failing after upgrade to c3p0 0.10" )
26
33
public void testStatementCaching () {
27
34
inSession (
28
35
session -> {
@@ -56,7 +63,8 @@ public void testStatementCaching() {
56
63
}
57
64
);
58
65
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)
60
68
inTransaction (
61
69
session -> {
62
70
CriteriaBuilder criteriaBuilder = session .getCriteriaBuilder ();
You can’t perform that action at this time.
0 commit comments