summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2013-02-28 13:28:35 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2013-02-28 13:28:35 +0000
commit77d30c4fdb8c2a875b5271bf808d49d5f2ea2e4d (patch)
tree362294596fadc164751e0006a4dfe42462dfeeb4 /test
parentf7b8c4a72b75b9a0f0b724a186abaa2586e64574 (diff)
downloadjackcess-77d30c4fdb8c2a875b5271bf808d49d5f2ea2e4d.tar.gz
jackcess-77d30c4fdb8c2a875b5271bf808d49d5f2ea2e4d.zip
use shared Calendar instance to converting Dates
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@663 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java2
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/TableTest.java7
2 files changed, 5 insertions, 4 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
index 5cb680c..e73661f 100644
--- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -1325,7 +1325,7 @@ public class DatabaseTest extends TestCase {
{
Column col = new Column(true, null) {
@Override
- protected TimeZone getTimeZone() { return tz; }
+ Calendar getCalendar() { return Calendar.getInstance(tz); }
};
SimpleDateFormat df = new SimpleDateFormat("yyyy.MM.dd");
diff --git a/test/src/java/com/healthmarketscience/jackcess/TableTest.java b/test/src/java/com/healthmarketscience/jackcess/TableTest.java
index 43f092f..146d42d 100644
--- a/test/src/java/com/healthmarketscience/jackcess/TableTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/TableTest.java
@@ -32,6 +32,7 @@ import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
@@ -183,12 +184,12 @@ public class TableTest extends TestCase {
return getTable().getPageChannel();
}
@Override
- protected Charset getCharset() {
+ Charset getCharset() {
return getFormat().CHARSET;
}
@Override
- protected TimeZone getTimeZone() {
- return TimeZone.getDefault();
+ Calendar getCalendar() {
+ return Calendar.getInstance();
}
};
}