public class RenameTableTest extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFERRED_FOREIGN_VIOLATION |
private static java.lang.String |
DEFERRED_PRIMARY_VIOLATION |
private static java.lang.String |
FOREIGN_VIOLATION |
private static java.lang.String |
PRIMARY_VIOLATION |
private static java.lang.String |
USER_ERROR |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
RenameTableTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
runStatementAndRaiseError(java.lang.String text) |
protected void |
setUp() |
static junit.framework.Test |
suite() |
protected void |
tearDown()
Tear down this fixture, sub-classes should call
super.tearDown().
|
void |
test_6672_1()
Test that you can rename a table referenced by a foreign key.
|
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 |
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, 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, 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
private static final java.lang.String PRIMARY_VIOLATION
private static final java.lang.String FOREIGN_VIOLATION
private static final java.lang.String DEFERRED_PRIMARY_VIOLATION
private static final java.lang.String DEFERRED_FOREIGN_VIOLATION
private static final java.lang.String USER_ERROR
public static junit.framework.Test suite()
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
BaseJDBCTestCase
tearDown
in class BaseJDBCTestCase
java.lang.Exception
public void testRenameNonExistingTable() throws java.sql.SQLException
java.sql.SQLException
public void testExistedNameForRenameTable() throws java.sql.SQLException
java.sql.SQLException
public void testRenameSystemTable() throws java.sql.SQLException
java.sql.SQLException
public void testRenameTableWithViews() throws java.sql.SQLException
java.sql.SQLException
public void testRenameWithIndex() throws java.sql.SQLException
java.sql.SQLException
public void testRenameWithPreparedStatement() throws java.sql.SQLException
java.sql.SQLException
public void testRenameTableWithTriggersOnIt() throws java.sql.SQLException
java.sql.SQLException
public void testRenameWithCheckConstraintsOnIt() throws java.sql.SQLException
java.sql.SQLException
public void testRenameInvalidation_derby_4479() throws java.sql.SQLException
java.sql.SQLException
public void test_6672_1() throws java.lang.Exception
java.lang.Exception
public static void runStatementAndRaiseError(java.lang.String text) throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.