public class NullableUniqueConstraintTest extends BaseJDBCTestCase
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
expImpDataFile |
(package private) static boolean |
exportFilesCreated |
private static java.lang.String |
LANG_DUPLICATE_KEY_CONSTRAINT |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
NullableUniqueConstraintTest(java.lang.String name)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
protected void |
setUp()
Create table for test cases to use.
|
static junit.framework.Test |
suite()
Returns the implemented tests.
|
protected void |
tearDown()
Tear down this fixture, sub-classes should call
super.tearDown().
|
void |
testComparisonAcrossPages()
Tries to forces internal routibe to travel across
pages to check for duplicates.
|
void |
testDefferedInsert()
Checks is insert for updates uses deffered inserts or not.
|
void |
testDeletedDuplicateHidesDuplicateOnLeftSide()
Test that a deleted duplicate value on the left side of the slot
into which a new value is inserted does not hide a non-deleted
duplicate two slots to the left.
|
void |
testDeletedDuplicateHidesDuplicateOnRightSide()
Test that a deleted duplicate value on the right side of the slot
into which a new value is inserted does not hide a non-deleted
duplicate two slots to the right.
|
void |
testDerby4677CompressTable()
Compress table should recreate the indexes correctly rather
than ignoring the unique nullable property of the index
|
void |
testDerby6374() |
void |
testDistinctQuery() |
void |
testInsertDeleteContinuouslySameValue()
Test that we can insert and delete the same value multiple times in a
nullable unique index.
|
void |
testMixedInsertDelete()
Test that repeatedly performing multi-row inserts and deletes spanning
multiple pages works correctly with nullable unique constraint.
|
void |
testMultipartKeyUniqueConstraint()
Basic test of Unique Constraint using multipart part key.
|
void |
testNullOrdering()
Test null ordering of the key in order by query.
|
void |
testSingleKeyPartUniqueConstraint()
Basic test of Unique Constraint using single part key.
|
void |
testWithDeletedKey()
Inserts a duplicate key of a deleted key within same transaction.
|
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, toStringprivate static final java.lang.String LANG_DUPLICATE_KEY_CONSTRAINT
static java.lang.String expImpDataFile
static boolean exportFilesCreated
public NullableUniqueConstraintTest(java.lang.String name)
public static junit.framework.Test suite()
Test with the implemented tests to
run.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 testSingleKeyPartUniqueConstraint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testDerby4677CompressTable()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testMultipartKeyUniqueConstraint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testWithDeletedKey()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testDistinctQuery()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNullOrdering()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testComparisonAcrossPages()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testDefferedInsert()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testMixedInsertDelete()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testDeletedDuplicateHidesDuplicateOnRightSide()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testDeletedDuplicateHidesDuplicateOnLeftSide()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testInsertDeleteContinuouslySameValue()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testDerby6374()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void main(java.lang.String[] args)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.