Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1E7F10685 for ; Sat, 22 Mar 2014 15:23:03 +0000 (UTC) Received: (qmail 62480 invoked by uid 500); 22 Mar 2014 15:23:03 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 62343 invoked by uid 500); 22 Mar 2014 15:22:56 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 62331 invoked by uid 99); 22 Mar 2014 15:22:54 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2014 15:22:54 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E9C54948BE3; Sat, 22 Mar 2014 15:22:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: busbey@apache.org To: commits@accumulo.apache.org Message-Id: <2193846f77b34350ae800e55e1983498@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: ACCUMULO-2490 Correct test invocation Pair.fromEntry. Add test for non-parameterized fromEntry call Date: Sat, 22 Mar 2014 15:22:53 +0000 (UTC) Repository: accumulo Updated Branches: refs/heads/master c5b8335d3 -> 8a363c3e3 ACCUMULO-2490 Correct test invocation Pair.fromEntry. Add test for non-parameterized fromEntry call Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/8a363c3e Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/8a363c3e Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/8a363c3e Branch: refs/heads/master Commit: 8a363c3e3695d8f1675b48d8308a7c512eef1b12 Parents: c5b8335 Author: Sean Busbey Authored: Sat Mar 22 02:14:09 2014 -0500 Committer: Sean Busbey Committed: Sat Mar 22 02:14:09 2014 -0500 ---------------------------------------------------------------------- .../test/java/org/apache/accumulo/core/util/PairTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/8a363c3e/core/src/test/java/org/apache/accumulo/core/util/PairTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/accumulo/core/util/PairTest.java b/core/src/test/java/org/apache/accumulo/core/util/PairTest.java index 04af1ba..b837f05 100644 --- a/core/src/test/java/org/apache/accumulo/core/util/PairTest.java +++ b/core/src/test/java/org/apache/accumulo/core/util/PairTest.java @@ -102,11 +102,15 @@ public class PairTest { public void testFromEntry() { Entry entry = new SimpleImmutableEntry(10, "IO"); - Pair pair = Pair.fromEntry(entry); + Pair pair0 = Pair.fromEntry(entry); + assertEquals(entry.getKey(), pair0.getFirst()); + assertEquals(entry.getValue(), pair0.getSecond()); + + Pair pair = Pair.fromEntry(entry); assertEquals(entry.getKey(), pair.getFirst()); assertEquals(entry.getValue(), pair.getSecond()); - Pair pair2 = Pair.fromEntry(entry); + Pair pair2 = Pair.fromEntry(entry); assertEquals(entry.getKey(), pair2.getFirst()); assertEquals(entry.getValue(), pair2.getSecond()); }