Return-Path: X-Original-To: apmail-phoenix-commits-archive@minotaur.apache.org Delivered-To: apmail-phoenix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F9B11780C for ; Thu, 16 Apr 2015 14:31:46 +0000 (UTC) Received: (qmail 17612 invoked by uid 500); 16 Apr 2015 14:31:43 -0000 Delivered-To: apmail-phoenix-commits-archive@phoenix.apache.org Received: (qmail 17529 invoked by uid 500); 16 Apr 2015 14:31:43 -0000 Mailing-List: contact commits-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list commits@phoenix.apache.org Received: (qmail 17328 invoked by uid 99); 16 Apr 2015 14:31:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 14:31:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BA60FE10A2; Thu, 16 Apr 2015 14:31:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: maryannxue@apache.org To: commits@phoenix.apache.org Date: Thu, 16 Apr 2015 14:31:49 -0000 Message-Id: <5d0e536fe491440ca47b6dceec866373@git.apache.org> In-Reply-To: <81a7d8a4cd5f4731bdb46271e1b675d4@git.apache.org> References: <81a7d8a4cd5f4731bdb46271e1b675d4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/50] [abbrv] phoenix git commit: PHOENIX-1783 Fix IDE compiler errors for JodaTimezoneCacheTest 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/calcite Commit: 2c0ed1045c84375a09e21e6f39ff96b48fd4e519 Parents: b9002b7 Author: James Taylor Authored: Fri Mar 27 16:29:00 2015 -0700 Committer: James Taylor 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); } }