public class ImportExportBinaryDataTest extends ImportExportBaseTest
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
fileName |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
ImportExportBinaryDataTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
private static void |
loadData(java.sql.Statement s) |
protected void |
setUp()
Simple set up, just empty the import table.
|
static junit.framework.Test |
suite()
Runs the tests in the default embedded configuration and then
the client server configuration.
|
protected void |
tearDown()
delete export/import files.
|
void |
testDerby2925ExportQuery() |
void |
testDerby2925ExportTable() |
void |
testDerby4677BulkInsertIntoEmptyTable()
Bulk insert into a table should recreate the indexes correctly rather
than ignoring the unique nullable property of the index.
|
void |
testDerby4677BulkInsertWithReplace()
Bulk insert into a table should recreate the indexes correctly rather
than ignoring the unique nullable property of the index.
|
void |
testImportDataExportQuery() |
void |
testImportDataExportQueryWithFewColumns() |
void |
testImportExportInvalideDelimiters() |
void |
testImportTableExportTable()
Test import/export of a table, using
SYSCS_EXPORT_TABLE and SYSCS_IMPORT_TABLE procedures.
|
void |
testImportWitgInvalidHexStrings() |
private void |
verifyData(java.lang.String cols) |
doExportQuery, doExportQueryLobsToExtFile, doExportTable, doExportTableLobsToExtFile, doImportData, doImportDataLobsFromExtFile, doImportTable, doImportTableLobsFromExtFile
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
public ImportExportBinaryDataTest(java.lang.String name)
public static junit.framework.Test suite()
protected void setUp() throws java.sql.SQLException
setUp
in class junit.framework.TestCase
java.sql.SQLException
protected void tearDown() throws java.lang.Exception
tearDown
in class BaseJDBCTestCase
java.lang.Exception
public void testImportTableExportTable() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testDerby4677BulkInsertIntoEmptyTable() throws java.sql.SQLException
java.sql.SQLException
public void testDerby4677BulkInsertWithReplace() throws java.sql.SQLException
java.sql.SQLException
public void testImportDataExportQuery() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testImportDataExportQueryWithFewColumns() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testImportExportInvalideDelimiters() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testImportWitgInvalidHexStrings() throws java.sql.SQLException
java.sql.SQLException
public void testDerby2925ExportTable() throws java.sql.SQLException
java.sql.SQLException
public void testDerby2925ExportQuery() throws java.sql.SQLException
java.sql.SQLException
private void verifyData(java.lang.String cols) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
private static void loadData(java.sql.Statement s) throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.