public class ImportExportLobTest extends ImportExportBaseTest
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
fileName |
(package private) java.lang.String |
lobsFileName |
(package private) java.lang.String |
lobsFileName2 |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
ImportExportLobTest(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.
|
void |
testDerby2955ExportQueryLobs() |
void |
testImportDataExportQuery() |
void |
testImportDataExportQueryLobsInExtFile() |
void |
testImportDataExportQueryWithFewColsLobsInExtFile() |
void |
testImportDataExportQueryWithFewColumns() |
void |
testImportExportInvalideDelimiters() |
void |
testImportTableExportTable()
Test import/export of a table, using
SYSCS_EXPORT_TABLE and SYSCS_IMPORT_TABLE procedures.
|
void |
testImportTableExportTableLobsInExtFile()
Test import/export of a table, using
SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE and
SYSCS_IMPORT_TABLE_LOBS_FROM_EXTFILE procedures.
|
void |
testImportTableExportTableLobsInUnqalifiedExtFile()
Test import/export of a table, using
SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE and
SYSCS_IMPORT_TABLE_LOBS_FROM_EXTFILE procedures,
with an unqualified lob data file name as parameter
for the export procedure.
|
void |
testImportTableExportWithInvalidLobFileName()
Test import/export of a table, using
SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE and
SYSCS_IMPORT_TABLE_LOBS_FROM_EXTFILE procedures, with an unqualified
lobs file name as an argument value.
|
void |
testImportWithInvalidHexStrings() |
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, 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
java.lang.String fileName
java.lang.String lobsFileName
java.lang.String lobsFileName2
public ImportExportLobTest(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public static junit.framework.Test suite()
protected void setUp() throws java.sql.SQLException
setUp
in class junit.framework.TestCase
java.sql.SQLException
public void testImportTableExportTable() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
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 testImportWithInvalidHexStrings() throws java.sql.SQLException
java.sql.SQLException
public void testImportTableExportTableLobsInExtFile() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testImportTableExportTableLobsInUnqalifiedExtFile() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testImportDataExportQueryLobsInExtFile() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testImportDataExportQueryWithFewColsLobsInExtFile() 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 testImportTableExportWithInvalidLobFileName() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void testDerby2955ExportQueryLobs() 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.