summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
index f11e1e1..a4d6a71 100644
--- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -491,5 +491,22 @@ public class DatabaseTest extends TestCase {
columns.add(col);
db.createTable("test", columns);
}
+
+ private static void dumpDatabase(Database mdb) throws Exception {
+ System.out.println("DATABASE:");
+
+ for(String tableName : mdb.getTableNames()) {
+ dumpTable(mdb.getTable(tableName));
+ }
+ }
+
+ private static void dumpTable(Table table) throws Exception {
+ System.out.println("TABLE: " + table.getName());
+ table.reset();
+ Object row = null;
+ while((row = table.getNextRow()) != null) {
+ System.out.println(row);
+ }
+ }
}