public class SavepointJdbc30Test extends BaseJDBCTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
SavepointJdbc30Test(java.lang.String name)
Create a test
|
| Modifier and Type | Method and Description |
|---|---|
private static junit.framework.Test |
getEmbeddedSuite(java.lang.String name)
Create a testsuite containing the tests that can only run in embedded
mode.
|
protected void |
setUp()
Set up the test environment.
|
static junit.framework.Test |
suite()
Set up the test suite for embedded mode, client mode, and embedded mode
with XADataSources
|
void |
testBug4465()
TEST 5a and 5b for bug 4465 test 5a - create two savepoints in two
different transactions and release the first one in the subsequent
transaction
|
void |
testBug5817()
Test 23 - bug 5817 - make savepoint and release non-reserved keywords
|
void |
testGrammarCheck()
Test 16 grammar check for savepoint sq1
|
void |
testNameCaseSensitivity()
Test 10 test savepoint name case sensitivity
|
void |
testNameLengthMax128Chars()
Test 24 Savepoint name can't exceed 128 characters
|
void |
testNamesAndIds()
Test4 - Verify names/ids of named/unnamed savepoints named savepoints
don't have an id. unnamed savepoints don't have a name (internally, all
our savepoints have names, but for unnamed savepoint, that is not exposed
through jdbc api)
|
void |
testNoNestedSavepointsInsideJdbcSavepoint()
Test 18
|
void |
testNoNestedSavepointsInsideSqlSavepoint()
Test 19
|
void |
testNoNestedSavepointsWhenUsingSQL()
Test 17
|
void |
testNoSavepointsIfAutoCommit()
Test1.
|
void |
testNoSqlSavepointStartingWithSYS()
Test 22
|
void |
testNoSqlSavepointStartingWithSYSThroughJdbc()
Test 25
|
void |
testNullName()
Test3 - Named savepoints can't pass null for name
|
void |
testQuotes()
Test that savepoint names can have double-quote characters.
|
void |
testReleaseMultipleTimes()
Test 12 releasing a savepoint multiple times - should not work
|
void |
testReleaseNullSavepoint()
Test 26b pass Null value to releaseSavepoint
|
void |
testReleaseReleasedSavepoint()
test 6a - create a savepoint release it and then create another with the
same name. and release the first one
|
void |
testReleaseSavepointFromOtherTransaction()
Test 6c: TEST case just for bug 4467 // Test 10 - create a named
savepoint with the a generated name savepoint1 =
con2.setSavepoint("SAVEPT0"); // what exactly is the correct behaviour
here?
|
void |
testReleaseSqlSavepointAndRollback()
Test 21
|
void |
testReusingSavepoints()
Test2 - After releasing a savepoint, should be able to reuse it.
|
void |
testRollbackMultipleTimes()
Test 11 rolling back a savepoint multiple times - should work
|
void |
testRollbackNullSavepoint()
bug 4451 - Test 26a pass Null value to rollback bug 5374 - Passing a null
savepoint to rollback or release method used to give a npe in JCC it
should give a SQLException aying "Cannot rollback to a null savepoint"
|
void |
testRollbackReleasedSavepoint()
test 6b - create a savepoints release it and then create another with the
same name. and rollback the first one
|
void |
testRollbackReleasesSavepointArray()
Test 14 cause a transaction rollback and that should release the internal
savepoint array
|
void |
testRollbackSqlSavepointSameAsJdbc()
Test 20
|
void |
testSavepointFromEarlierTransactionAfterToggleAutocommit()
Test 13 shouldn't be able to use a savepoint from earlier transaction
after setting autocommit on and off
|
void |
testSavepointName()
Test 9 test savepoint name and verify case sensitivity
|
void |
testSavepointsInBatch()
Test 15 Check savepoints in batch
|
void |
testSwapSavepointsAcrossConnectionAndRelease()
Test 7a: BUG 4468 - should not be able to pass a savepoint from a
different transaction for release/rollback
|
void |
testSwapSavepointsAcrossConnectionsAndRollback()
Test 7b - swap savepoints across connections
|
void |
xtestCommitWillReleaseActiveSavepoints()
Test42a - Commit on a connection will release all the savepoints created
for that transaction
|
void |
xtestCursorsCloseOnRollback()
Test 46 bug 5145 Cursors declared before and within the savepoint unit
will be closed when rolling back the savepoint
|
void |
xtestGetSavepoint()
Test 47 multiple tests for getSavepointId()
|
void |
xtestNestedSavepoints()
Test 48
|
void |
xtestNoConflictWithGeneratedName()
Test40 - We internally generate a unique name for unnamed savepoints.
|
void |
xtestReuseNameAfterRelease()
Test43 - After releasing a savepoint, should be able to reuse it.
|
void |
xtestReuseNameAfterRollback()
Test 45 reuse savepoint name after rollback - should not work
|
void |
xtestRollbackWillReleaseActiveSavepoints()
Test42 - Rollback on a connection will release all the savepoints created
for that transaction
|
void |
xtestRollbackWillReleaseLaterSavepoints()
Test41 - Rolling back to a savepoint will release all the savepoints
created after that savepoint.
|
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toStringpublic SavepointJdbc30Test(java.lang.String name)
name - public static junit.framework.Test suite()
private static junit.framework.Test getEmbeddedSuite(java.lang.String name)
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testNoSavepointsIfAutoCommit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testReusingSavepoints()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNullName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNamesAndIds()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testBug4465()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testReleaseReleasedSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRollbackReleasedSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testReleaseSavepointFromOtherTransaction()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSwapSavepointsAcrossConnectionAndRelease()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSwapSavepointsAcrossConnectionsAndRollback()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSavepointName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNameCaseSensitivity()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRollbackMultipleTimes()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testReleaseMultipleTimes()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSavepointFromEarlierTransactionAfterToggleAutocommit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRollbackReleasesSavepointArray()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSavepointsInBatch()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testGrammarCheck()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNoNestedSavepointsWhenUsingSQL()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNoNestedSavepointsInsideJdbcSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNoNestedSavepointsInsideSqlSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRollbackSqlSavepointSameAsJdbc()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testReleaseSqlSavepointAndRollback()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNoSqlSavepointStartingWithSYS()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testBug5817()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNameLengthMax128Chars()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNoSqlSavepointStartingWithSYSThroughJdbc()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRollbackNullSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testReleaseNullSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testQuotes()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestNoConflictWithGeneratedName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestRollbackWillReleaseLaterSavepoints()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestRollbackWillReleaseActiveSavepoints()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestCommitWillReleaseActiveSavepoints()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestReuseNameAfterRelease()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestReuseNameAfterRollback()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestCursorsCloseOnRollback()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestGetSavepoint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestNestedSavepoints()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.