!56 【bugfix】repait testcase in ConnectionTest
Merge pull request !56 from douxin/connectionTest
This commit is contained in:
@ -222,7 +222,7 @@ public class ConnectionTest {
|
||||
assertEquals(defaultLevel, con.getTransactionIsolation());
|
||||
|
||||
con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
|
||||
assertEquals(Connection.TRANSACTION_SERIALIZABLE, con.getTransactionIsolation());
|
||||
assertEquals(Connection.TRANSACTION_REPEATABLE_READ, con.getTransactionIsolation());
|
||||
|
||||
con.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
|
||||
assertEquals(Connection.TRANSACTION_READ_COMMITTED, con.getTransactionIsolation());
|
||||
@ -230,11 +230,11 @@ public class ConnectionTest {
|
||||
// Test if a change of isolation level before beginning the
|
||||
// transaction affects the isolation level inside the transaction.
|
||||
con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
|
||||
assertEquals(Connection.TRANSACTION_SERIALIZABLE, con.getTransactionIsolation());
|
||||
assertEquals(Connection.TRANSACTION_REPEATABLE_READ, con.getTransactionIsolation());
|
||||
con.setAutoCommit(false);
|
||||
assertEquals(Connection.TRANSACTION_SERIALIZABLE, con.getTransactionIsolation());
|
||||
assertEquals(Connection.TRANSACTION_REPEATABLE_READ, con.getTransactionIsolation());
|
||||
con.setAutoCommit(true);
|
||||
assertEquals(Connection.TRANSACTION_SERIALIZABLE, con.getTransactionIsolation());
|
||||
assertEquals(Connection.TRANSACTION_REPEATABLE_READ, con.getTransactionIsolation());
|
||||
con.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
|
||||
assertEquals(Connection.TRANSACTION_READ_COMMITTED, con.getTransactionIsolation());
|
||||
con.setAutoCommit(false);
|
||||
|
||||
Reference in New Issue
Block a user