Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 12078 invoked from network); 25 Feb 2010 03:12:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2010 03:12:10 -0000 Received: (qmail 23736 invoked by uid 500); 25 Feb 2010 03:12:10 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 23523 invoked by uid 500); 25 Feb 2010 03:12:09 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 23516 invoked by uid 99); 25 Feb 2010 03:12:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 03:12:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 03:12:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1ED3023889CB; Thu, 25 Feb 2010 03:11:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r916099 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/PairTest.java Date: Thu, 25 Feb 2010 03:11:49 -0000 To: commits@commons.apache.org From: bayard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100225031149.1ED3023889CB@eris.apache.org> Author: bayard Date: Thu Feb 25 03:11:48 2010 New Revision: 916099 URL: http://svn.apache.org/viewvc?rev=916099&view=rev Log: Adding toString test. LANG-588 Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/PairTest.java Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/PairTest.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/PairTest.java?rev=916099&r1=916098&r2=916099&view=diff ============================================================================== --- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/PairTest.java (original) +++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/PairTest.java Thu Feb 25 03:11:48 2010 @@ -63,6 +63,14 @@ } @Test + public void testToString() throws Exception { + assertEquals("(null,null)", Pair.of(null, null).toString()); + assertEquals("(null,two)", Pair.of(null, "two").toString()); + assertEquals("(one,null)", Pair.of("one", null).toString()); + assertEquals("(one,two)", Pair.of("one", "two").toString()); + } + + @Test @SuppressWarnings("unchecked") public void testSerialization() throws Exception { Pair origPair = Pair.of(0, "foo");