phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sama...@apache.org
Subject [2/2] phoenix git commit: Fix IDE compiler errors for JodaTimezoneCacheTest (James Taylor)
Date Mon, 30 Mar 2015 18:18:51 GMT
Fix IDE compiler errors for JodaTimezoneCacheTest (James Taylor)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/a24c3af6
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a24c3af6
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a24c3af6

Branch: refs/heads/4.3
Commit: a24c3af653aa4bb000c431f639d267dd84edd12a
Parents: d8a2308
Author: Samarth <samarth.jain@salesforce.com>
Authored: Mon Mar 30 11:19:35 2015 -0700
Committer: Samarth <samarth.jain@salesforce.com>
Committed: Mon Mar 30 11:19:35 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/a24c3af6/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);
     }
 }


Mime
View raw message