summaryrefslogtreecommitdiffstats
path: root/test/src/java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2009-10-27 01:26:46 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2009-10-27 01:26:46 +0000
commit03de09743b2d808221dcc30795d329d45a6fae21 (patch)
treefd93ba9b6be1fc568af07884b9dadc20c2c7b639 /test/src/java
parent24b20e6d8c454e7296b8e5700a0e9ed15e2e745a (diff)
downloadjackcess-03de09743b2d808221dcc30795d329d45a6fae21.tar.gz
jackcess-03de09743b2d808221dcc30795d329d45a6fae21.zip
initial support for guid indexes and guid autonumbers
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@406 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
index 5b5d343..9055ed8 100644
--- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -1032,6 +1032,20 @@ public class DatabaseTest extends TestCase {
}
}
+ static void dumpIndex(Index index) throws Exception {
+ dumpIndex(index, new PrintWriter(System.out, true));
+ }
+
+ static void dumpIndex(Index index, PrintWriter writer) throws Exception {
+ writer.println("INDEX: " + index);
+ Index.EntryCursor ec = index.cursor();
+ Index.Entry lastE = ec.getLastEntry();
+ Index.Entry e = null;
+ while((e = ec.getNextEntry()) != lastE) {
+ writer.println(e);
+ }
+ }
+
static void copyFile(File srcFile, File dstFile)
throws IOException
{