public class RenameTableTest extends BaseJDBCTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
RenameTableTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
static junit.framework.Test |
suite() |
protected void |
tearDown()
Tear down this fixture, sub-classes should call
super.tearDown().
|
void |
testExistedNameForRenameTable()
Tests that we can't rename a table with an existed table name
|
void |
testRenameInvalidation_derby_4479()
Tests that rename table invalidates stored statement plans (DERBY-4479).
|
void |
testRenameNonExistingTable()
Tests that we can't rename a Non-Existing Table.
|
void |
testRenameOnDependencies()
We can't Rename a Table When there is a foreign key constraint depended
on it.
|
void |
testRenameSystemTable()
Tests that we cannot rename a System Table.
|
void |
testRenameTableWithTriggersOnIt()
Test that we can RENAME a TABLE when there is trigger defined on it.
|
void |
testRenameTableWithViews()
Tests that we cannot rename a View
|
void |
testRenameWithCheckConstraintsOnIt()
RENAME TABLE should fail when check constraints on it.
|
void |
testRenameWithIndex()
Tests that We can rename a table when there is an index defined on it
|
void |
testRenameWithPreparedStatement()
Test Rename Table With PreparedStatement.
|
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, 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 static junit.framework.Test suite()
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
BaseJDBCTestCasetearDown in class BaseJDBCTestCasejava.lang.Exceptionpublic void testRenameNonExistingTable()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testExistedNameForRenameTable()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameSystemTable()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameTableWithViews()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameOnDependencies()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameWithIndex()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameWithPreparedStatement()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameTableWithTriggersOnIt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameWithCheckConstraintsOnIt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testRenameInvalidation_derby_4479()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.