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, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, 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, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
public 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.TestCase
java.lang.Exception
public void testNoSavepointsIfAutoCommit() throws java.sql.SQLException
java.sql.SQLException
public void testReusingSavepoints() throws java.sql.SQLException
java.sql.SQLException
public void testNullName() throws java.sql.SQLException
java.sql.SQLException
public void testNamesAndIds() throws java.sql.SQLException
java.sql.SQLException
public void testBug4465() throws java.sql.SQLException
java.sql.SQLException
public void testReleaseReleasedSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void testRollbackReleasedSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void testReleaseSavepointFromOtherTransaction() throws java.sql.SQLException
java.sql.SQLException
public void testSwapSavepointsAcrossConnectionAndRelease() throws java.sql.SQLException
java.sql.SQLException
public void testSwapSavepointsAcrossConnectionsAndRollback() throws java.sql.SQLException
java.sql.SQLException
public void testSavepointName() throws java.sql.SQLException
java.sql.SQLException
public void testNameCaseSensitivity() throws java.sql.SQLException
java.sql.SQLException
public void testRollbackMultipleTimes() throws java.sql.SQLException
java.sql.SQLException
public void testReleaseMultipleTimes() throws java.sql.SQLException
java.sql.SQLException
public void testSavepointFromEarlierTransactionAfterToggleAutocommit() throws java.sql.SQLException
java.sql.SQLException
public void testRollbackReleasesSavepointArray() throws java.sql.SQLException
java.sql.SQLException
public void testSavepointsInBatch() throws java.sql.SQLException
java.sql.SQLException
public void testGrammarCheck() throws java.sql.SQLException
java.sql.SQLException
public void testNoNestedSavepointsWhenUsingSQL() throws java.sql.SQLException
java.sql.SQLException
public void testNoNestedSavepointsInsideJdbcSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void testNoNestedSavepointsInsideSqlSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void testRollbackSqlSavepointSameAsJdbc() throws java.sql.SQLException
java.sql.SQLException
public void testReleaseSqlSavepointAndRollback() throws java.sql.SQLException
java.sql.SQLException
public void testNoSqlSavepointStartingWithSYS() throws java.sql.SQLException
java.sql.SQLException
public void testBug5817() throws java.sql.SQLException
java.sql.SQLException
public void testNameLengthMax128Chars() throws java.sql.SQLException
java.sql.SQLException
public void testNoSqlSavepointStartingWithSYSThroughJdbc() throws java.sql.SQLException
java.sql.SQLException
public void testRollbackNullSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void testReleaseNullSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void testQuotes() throws java.sql.SQLException
java.sql.SQLException
public void xtestNoConflictWithGeneratedName() throws java.sql.SQLException
java.sql.SQLException
public void xtestRollbackWillReleaseLaterSavepoints() throws java.sql.SQLException
java.sql.SQLException
public void xtestRollbackWillReleaseActiveSavepoints() throws java.sql.SQLException
java.sql.SQLException
public void xtestCommitWillReleaseActiveSavepoints() throws java.sql.SQLException
java.sql.SQLException
public void xtestReuseNameAfterRelease() throws java.sql.SQLException
java.sql.SQLException
public void xtestReuseNameAfterRollback() throws java.sql.SQLException
java.sql.SQLException
public void xtestCursorsCloseOnRollback() throws java.sql.SQLException
java.sql.SQLException
public void xtestGetSavepoint() throws java.sql.SQLException
java.sql.SQLException
public void xtestNestedSavepoints() throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.