diff options
author | Narayan Kamath <narayan@google.com> | 2015-04-30 16:15:56 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-30 16:15:56 +0000 |
commit | d2237f8e76817df5c8f2493740af3ee96ef4033b (patch) | |
tree | 9b00ee4440e6c5999213d03791b48085b7ce1087 /luni/src/test/java | |
parent | 34fde902371bad69601798a84225441a1fcacd94 (diff) | |
parent | 3bb833819dba8d530620ad6d43dc53c3fd54763b (diff) | |
download | libcore-d2237f8e76817df5c8f2493740af3ee96ef4033b.zip libcore-d2237f8e76817df5c8f2493740af3ee96ef4033b.tar.gz libcore-d2237f8e76817df5c8f2493740af3ee96ef4033b.tar.bz2 |
am 3bb83381: Add a ZoneInfoDB.hasTimeZone API.
* commit '3bb833819dba8d530620ad6d43dc53c3fd54763b':
Add a ZoneInfoDB.hasTimeZone API.
Diffstat (limited to 'luni/src/test/java')
-rw-r--r-- | luni/src/test/java/libcore/util/ZoneInfoDBTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/luni/src/test/java/libcore/util/ZoneInfoDBTest.java b/luni/src/test/java/libcore/util/ZoneInfoDBTest.java index 9875647..a90bb8e 100644 --- a/luni/src/test/java/libcore/util/ZoneInfoDBTest.java +++ b/luni/src/test/java/libcore/util/ZoneInfoDBTest.java @@ -98,6 +98,13 @@ public class ZoneInfoDBTest extends junit.framework.TestCase { public void testMakeTimeZone_notFound() throws Exception { ZoneInfoDB.TzData data = new ZoneInfoDB.TzData(TZDATA_IN_ROOT); assertNull(data.makeTimeZone("THIS_TZ_DOES_NOT_EXIST")); + assertFalse(data.hasTimeZone("THIS_TZ_DOES_NOT_EXIST")); + } + + public void testMakeTimeZone_found() throws Exception { + ZoneInfoDB.TzData data = new ZoneInfoDB.TzData(TZDATA_IN_ROOT); + assertNotNull(data.makeTimeZone("Europe/London")); + assertTrue(data.hasTimeZone("Europe/London")); } private static String makeCorruptFile() throws Exception { |