aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2018-12-15 16:09:46 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2018-12-15 16:09:46 +0000
commit21fe1417bb49bbdba8591377c221a4417a8851ee (patch)
treea3dc6451027a4eaaad6f40795ea394805373d8ab /src/test
parent843a44dfe074a2b587ff4aacbd4089ab22e6f087 (diff)
downloadjackcess-21fe1417bb49bbdba8591377c221a4417a8851ee.tar.gz
jackcess-21fe1417bb49bbdba8591377c221a4417a8851ee.zip
use interface to pass zone info into date/time conversion methods
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/jdk8@1239 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java4
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/LocalDateTimeTest.java4
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/TableTest.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
index de6bd94..209a63d 100644
--- a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -991,9 +991,9 @@ public class DatabaseTest extends TestCase
{
ColumnImpl col = new ColumnImpl(null, null, DataType.SHORT_DATE_TIME, 0, 0, 0) {
@Override
- protected TimeZone getTimeZone() { return tz; }
+ public TimeZone getTimeZone() { return tz; }
@Override
- protected ZoneId getZoneId() { return null; }
+ public ZoneId getZoneId() { return null; }
};
SimpleDateFormat df = new SimpleDateFormat("yyyy.MM.dd");
diff --git a/src/test/java/com/healthmarketscience/jackcess/LocalDateTimeTest.java b/src/test/java/com/healthmarketscience/jackcess/LocalDateTimeTest.java
index 5dde831..637629a 100644
--- a/src/test/java/com/healthmarketscience/jackcess/LocalDateTimeTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/LocalDateTimeTest.java
@@ -127,9 +127,9 @@ public class LocalDateTimeTest extends TestCase
final TimeZone tz = TimeZone.getTimeZone(zoneId);
ColumnImpl col = new ColumnImpl(null, null, DataType.SHORT_DATE_TIME, 0, 0, 0) {
@Override
- protected TimeZone getTimeZone() { return tz; }
+ public TimeZone getTimeZone() { return tz; }
@Override
- protected ZoneId getZoneId() { return zoneId; }
+ public ZoneId getZoneId() { return zoneId; }
};
SimpleDateFormat df = new SimpleDateFormat("yyyy.MM.dd");
diff --git a/src/test/java/com/healthmarketscience/jackcess/TableTest.java b/src/test/java/com/healthmarketscience/jackcess/TableTest.java
index 3bc2dbd..eaae617 100644
--- a/src/test/java/com/healthmarketscience/jackcess/TableTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/TableTest.java
@@ -185,7 +185,7 @@ public class TableTest extends TestCase {
return getFormat().CHARSET;
}
@Override
- protected TimeZone getTimeZone() {
+ public TimeZone getTimeZone() {
return TimeZone.getDefault();
}
@Override