diff options
Diffstat (limited to 'src/test/java/com/healthmarketscience/jackcess')
5 files changed, 11 insertions, 0 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/ComplexColumnTest.java b/src/test/java/com/healthmarketscience/jackcess/ComplexColumnTest.java index c8b81a3..e2fdc3d 100644 --- a/src/test/java/com/healthmarketscience/jackcess/ComplexColumnTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/ComplexColumnTest.java @@ -51,6 +51,7 @@ public class ComplexColumnTest extends TestCase { for(final TestDB testDB : TestDB.getSupportedForBasename(Basename.COMPLEX)) { Database db = openCopy(testDB); + db.setDateTimeType(DateTimeType.DATE); db.setTimeZone(TEST_TZ); Table t1 = db.getTable("Table1"); diff --git a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java index e2e16e5..2d118a7 100644 --- a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java @@ -160,6 +160,8 @@ public class DatabaseTest extends TestCase public void testGetNextRow() throws Exception { for (final TestDB testDB : SUPPORTED_DBS_TEST_FOR_READ) { final Database db = open(testDB); + db.setDateTimeType(DateTimeType.DATE); + assertEquals(4, db.getTableNames().size()); final Table table = db.getTable("Table1"); @@ -623,6 +625,7 @@ public class DatabaseTest extends TestCase public void testWriteAndReadDate() throws Exception { for (final FileFormat fileFormat : SUPPORTED_FILEFORMATS) { Database db = createMem(fileFormat); + db.setDateTimeType(DateTimeType.DATE); Table table = new TableBuilder("test") .addColumn(new ColumnBuilder("name", DataType.TEXT)) @@ -693,6 +696,7 @@ public class DatabaseTest extends TestCase for (final FileFormat fileFormat : SUPPORTED_FILEFORMATS) { Database db = createMem(fileFormat); + db.setDateTimeType(DateTimeType.DATE); db.setTimeZone(tz); Table table = new TableBuilder("test") @@ -716,6 +720,7 @@ public class DatabaseTest extends TestCase for (final TestDB testDB : TestDB.getSupportedForBasename(Basename.OLD_DATES)) { Database db = openCopy(testDB); + db.setDateTimeType(DateTimeType.DATE); Table t = db.getTable("Table1"); diff --git a/src/test/java/com/healthmarketscience/jackcess/IndexTest.java b/src/test/java/com/healthmarketscience/jackcess/IndexTest.java index 8633dea..4836231 100644 --- a/src/test/java/com/healthmarketscience/jackcess/IndexTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/IndexTest.java @@ -350,6 +350,7 @@ public class IndexTest extends TestCase { public void testUniqueEntryCount() throws Exception { for (final TestDB testDB : SUPPORTED_DBS_TEST) { Database db = openCopy(testDB); + db.setDateTimeType(DateTimeType.DATE); Table table = db.getTable("Table1"); IndexImpl indA = (IndexImpl)table.getIndex("PrimaryKey"); IndexImpl indB = (IndexImpl)table.getIndex("B"); diff --git a/src/test/java/com/healthmarketscience/jackcess/impl/IndexCodesTest.java b/src/test/java/com/healthmarketscience/jackcess/impl/IndexCodesTest.java index bf386d8..cfcca83 100644 --- a/src/test/java/com/healthmarketscience/jackcess/impl/IndexCodesTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/impl/IndexCodesTest.java @@ -31,6 +31,7 @@ import com.healthmarketscience.jackcess.Cursor; import com.healthmarketscience.jackcess.CursorBuilder; import com.healthmarketscience.jackcess.DataType; import com.healthmarketscience.jackcess.Database; +import com.healthmarketscience.jackcess.DateTimeType; import com.healthmarketscience.jackcess.Index; import com.healthmarketscience.jackcess.Row; import com.healthmarketscience.jackcess.Table; @@ -65,6 +66,7 @@ public class IndexCodesTest extends TestCase { { for (final TestDB testDB : TestDB.getSupportedForBasename(Basename.INDEX_CODES, true)) { Database db = openMem(testDB); + db.setDateTimeType(DateTimeType.DATE); for(Table t : db) { for(Index index : t.getIndexes()) { diff --git a/src/test/java/com/healthmarketscience/jackcess/util/ExportTest.java b/src/test/java/com/healthmarketscience/jackcess/util/ExportTest.java index 5ffdbd9..8eb2c15 100644 --- a/src/test/java/com/healthmarketscience/jackcess/util/ExportTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/util/ExportTest.java @@ -26,6 +26,7 @@ import static com.healthmarketscience.jackcess.Database.*; import com.healthmarketscience.jackcess.ColumnBuilder; import com.healthmarketscience.jackcess.DataType; import com.healthmarketscience.jackcess.Database; +import com.healthmarketscience.jackcess.DateTimeType; import com.healthmarketscience.jackcess.Table; import com.healthmarketscience.jackcess.TableBuilder; import com.healthmarketscience.jackcess.impl.JetFormatTest; @@ -52,6 +53,7 @@ public class ExportTest extends TestCase for (final FileFormat fileFormat : JetFormatTest.SUPPORTED_FILEFORMATS) { Database db = create(fileFormat); + db.setDateTimeType(DateTimeType.DATE); db.setTimeZone(TEST_TZ); Table t = new TableBuilder("test") |