|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.jdbcapi.SetTransactionIsolationTest
public class SetTransactionIsolationTest
Test setTransactionIsolation
| Field Summary | |
|---|---|
static int[] |
isoLevels
|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
SetTransactionIsolationTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static junit.framework.Test |
baseSuite(java.lang.String name)
|
private void |
checkIsolationLevelNoTimeout(java.sql.Connection conn,
int isoLevel)
Test setTransactionIsolation and queries with no timeout expected |
private void |
checkIsolationLevelTimeout(java.sql.Connection conn,
int isoLevel)
Check setTransactioIsolation and queries with timeout expected in all cases except READ_UNCOMMITTED |
static junit.framework.Test |
suite()
|
void |
testIsolation()
test setting of isolation levels with and without lock timeouts |
void |
testSetTransactionIsolationCommits()
setTransactionIsolation commits? |
void |
testSetTransactionIsolationInHoldCursor()
Call setTransactionIsolation with holdable cursor open? |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int[] isoLevels
| Constructor Detail |
|---|
public SetTransactionIsolationTest(java.lang.String name)
name - | Method Detail |
|---|
public void testIsolation()
throws java.sql.SQLException
java.sql.SQLException
private void checkIsolationLevelTimeout(java.sql.Connection conn,
int isoLevel)
throws java.sql.SQLException
conn - Connection to useisoLevel - Isolation level to test from Connection.TRANSACTION_*
java.sql.SQLException
private void checkIsolationLevelNoTimeout(java.sql.Connection conn,
int isoLevel)
throws java.sql.SQLException
conn - isoLevel -
java.sql.SQLException
public void testSetTransactionIsolationCommits()
throws java.sql.SQLException
java.sql.SQLException
public void testSetTransactionIsolationInHoldCursor()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static junit.framework.Test baseSuite(java.lang.String name)
public static junit.framework.Test suite()
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||