You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2015/03/28 00:29:15 UTC
phoenix git commit: PHOENIX-1783 Fix IDE compiler errors for
JodaTimezoneCacheTest
Repository: phoenix
Updated Branches:
refs/heads/master b9002b7ca -> 2c0ed1045
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/2c0ed104
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/2c0ed104
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/2c0ed104
Branch: refs/heads/master
Commit: 2c0ed1045c84375a09e21e6f39ff96b48fd4e519
Parents: b9002b7
Author: James Taylor <ja...@apache.org>
Authored: Fri Mar 27 16:29:00 2015 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Fri Mar 27 16:29:00 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/2c0ed104/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);
}
}