diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/data/V2010/complexDataTestV2010.accdb | bin | 0 -> 544768 bytes | |||
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java | 8 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/data/V2010/complexDataTestV2010.accdb b/test/data/V2010/complexDataTestV2010.accdb Binary files differnew file mode 100755 index 0000000..7df4baa --- /dev/null +++ b/test/data/V2010/complexDataTestV2010.accdb 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")); |