]> source.dussan.org Git - jackcess.git/commitdiff
add 2010 complex test db
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 26 Oct 2011 03:15:23 +0000 (03:15 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 26 Oct 2011 03:15:23 +0000 (03:15 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@582 f203690c-595d-4dc9-a70b-905162fa7fd2

test/data/V2010/complexDataTestV2010.accdb [new file with mode: 0755]
test/src/java/com/healthmarketscience/jackcess/ComplexColumnTest.java

diff --git a/test/data/V2010/complexDataTestV2010.accdb b/test/data/V2010/complexDataTestV2010.accdb
new file mode 100755 (executable)
index 0000000..7df4baa
Binary files /dev/null and b/test/data/V2010/complexDataTestV2010.accdb differ
index a0664c46dcd7e11c748e67f8703ad7d6f6ff8cf2..7fdaea5e7d219dae5a05f1fcc6e883dc27687e12 100644 (file)
@@ -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"));