summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2011-10-26 03:15:23 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2011-10-26 03:15:23 +0000
commit5f22dff2bb6577682c4f6e7db0b386183dfbe94f (patch)
treef0267e773ad9bf925f0dfb5c11574b4d0b98afc6 /test
parentcb3b8085ccf3b3c2a52a4d431b2a3befd98c1ef2 (diff)
downloadjackcess-5f22dff2bb6577682c4f6e7db0b386183dfbe94f.tar.gz
jackcess-5f22dff2bb6577682c4f6e7db0b386183dfbe94f.zip
add 2010 complex test db
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@582 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test')
-rwxr-xr-xtest/data/V2010/complexDataTestV2010.accdbbin0 -> 544768 bytes
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java8
2 files changed, 3 insertions, 5 deletions
diff --git a/test/data/V2010/complexDataTestV2010.accdb b/test/data/V2010/complexDataTestV2010.accdb
new file mode 100755
index 0000000..7df4baa
--- /dev/null
+++ b/test/data/V2010/complexDataTestV2010.accdb
Binary files differ
diff --git a/test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java b/test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java
index a0664c4..7fdaea5 100644
--- a/test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java
@@ -2,7 +2,6 @@
package com.healthmarketscience.jackcess;
-import java.io.File;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
@@ -32,7 +31,6 @@ public class ComplexColumnTest extends TestCase
public void testVersions() throws Exception
{
for(final TestDB testDB : TestDB.getSupportedForBasename(Basename.COMPLEX)) {
-
Database db = openCopy(testDB);
db.setTimeZone(TEST_TZ);
@@ -77,7 +75,7 @@ public class ComplexColumnTest extends TestCase
verCol.getRowValue(row8);
Date upTime = new Date();
row8ValFk.addVersion("row8-memo", upTime);
- checkVersions(8, row8ValFk, "row8-memo",
+ checkVersions(row8ValFk.get(), row8ValFk, "row8-memo",
"row8-memo", upTime);
Cursor cursor = Cursor.createCursor(t1);
@@ -141,7 +139,7 @@ public class ComplexColumnTest extends TestCase
col.getRowValue(row8);
row8ValFk.addAttachment(null, "test_data.txt", "txt",
getFileBytes("test_data.txt"), null, null);
- checkAttachments(8, row8ValFk, "test_data.txt");
+ checkAttachments(row8ValFk.get(), row8ValFk, "test_data.txt");
Cursor cursor = Cursor.createCursor(t1);
assertTrue(cursor.findRow(t1.getColumn("id"), "row4"));
@@ -207,7 +205,7 @@ public class ComplexColumnTest extends TestCase
col.getRowValue(row8);
row8ValFk.addMultiValue("value1");
row8ValFk.addMultiValue("value2");
- checkMultiValues(8, row8ValFk, "value1", "value2");
+ checkMultiValues(row8ValFk.get(), row8ValFk, "value1", "value2");
Cursor cursor = Cursor.createCursor(t1);
assertTrue(cursor.findRow(t1.getColumn("id"), "row2"));