| java.lang.Object org.apache.derbyTesting.functionTests.tests.tools.importExport
importExport | public class importExport (Code) | | This tests import and export utilties. It first creates
a temp table T1 and inserts data into it. Then it calls
export to export data out from it into a temp file. Then
it calls import to read data from the temp file just
created. The program goes through the resultset of import
and inserts one row at a time into another temp table T2
which has same number of columns as T1. Then it compares
number of rows in T1 and T2. If the number of rows are same
as in T1 then part of the test succedded.
The second part imports data out from T2 into second temp
file and then we compare both the temp files to see if the
2 files exactly match
author: Mamta, Suresht |
Method Summary | |
static void | addDummyRows() | static void | cleanupBeforeNextRun() | static boolean | diffTwoFiles(String file1, String file2) | static void | doImportAndExport(String fromTable, String colDel, String charDel, String codeset) | static void | doImportAndVerify(String fromTable, String colDel, String charDel, String codeset, int replace) | public static void | main(String[] args) | static void | printExceptionMessage(Exception ex) | static void | setup(boolean first) | static void | teardown() | static void | verifyBoolean(boolean got, boolean expect) | static void | verifyCount(int count, int expect) |
cleanupBeforeNextRun | static void cleanupBeforeNextRun() throws Exception(Code) | | |
verifyBoolean | static void verifyBoolean(boolean got, boolean expect) throws SQLException(Code) | | |
|
|