Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 3bca61df5 -> 0e45509f9
PHOENIX-1783 Fix IDE compiler errors for JodaTimezoneCacheTest Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/0e45509f Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/0e45509f Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/0e45509f Branch: refs/heads/4.x-HBase-0.98 Commit: 0e45509f9fb0eb3bf9efc6ea80bd7d9f988cf430 Parents: 3bca61d Author: James Taylor <[email protected]> Authored: Fri Mar 27 16:29:00 2015 -0700 Committer: James Taylor <[email protected]> Committed: Fri Mar 27 18:40:09 2015 -0700 ---------------------------------------------------------------------- .../org/apache/phoenix/cache/JodaTimezoneCacheTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/0e45509f/phoenix-core/src/test/java/org/apache/phoenix/cache/JodaTimezoneCacheTest.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/test/java/org/apache/phoenix/cache/JodaTimezoneCacheTest.java b/phoenix-core/src/test/java/org/apache/phoenix/cache/JodaTimezoneCacheTest.java index f388703..e9b6c67 100644 --- a/phoenix-core/src/test/java/org/apache/phoenix/cache/JodaTimezoneCacheTest.java +++ b/phoenix-core/src/test/java/org/apache/phoenix/cache/JodaTimezoneCacheTest.java @@ -15,12 +15,14 @@ */ package org.apache.phoenix.cache; +import static org.junit.Assert.assertNotNull; + import java.nio.ByteBuffer; + import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.hbase.util.Bytes; import org.apache.phoenix.schema.IllegalDataException; import org.joda.time.DateTimeZone; -import static org.junit.Assert.assertTrue; import org.junit.Test; public class JodaTimezoneCacheTest { @@ -28,13 +30,13 @@ public class JodaTimezoneCacheTest { @Test public void testGetInstanceByteBufferUTC() { DateTimeZone instance = JodaTimezoneCache.getInstance(ByteBuffer.wrap(Bytes.toBytes("UTC"))); - assertTrue(instance instanceof DateTimeZone); + assertNotNull(instance); } @Test public void testGetInstanceString() { DateTimeZone instance = JodaTimezoneCache.getInstance("America/St_Vincent"); - assertTrue(instance instanceof DateTimeZone); + assertNotNull(instance); } @Test(expected = IllegalDataException.class) @@ -46,6 +48,6 @@ public class JodaTimezoneCacheTest { public void testGetInstanceImmutableBytesWritable() { ImmutableBytesWritable ptr = new ImmutableBytesWritable(Bytes.toBytes("Europe/Isle_of_Man")); DateTimeZone instance = JodaTimezoneCache.getInstance(ptr); - assertTrue(instance instanceof DateTimeZone); + assertNotNull(instance); } }
