Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 94350 invoked from network); 21 Jan 2010 18:21:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2010 18:21:03 -0000 Received: (qmail 42998 invoked by uid 500); 21 Jan 2010 18:21:03 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 42965 invoked by uid 500); 21 Jan 2010 18:21:03 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 42956 invoked by uid 99); 21 Jan 2010 18:21:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 18:21:03 +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, 21 Jan 2010 18:21:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 49FCF2388906; Thu, 21 Jan 2010 18:20:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r901812 - in /lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis: TestToken.java tokenattributes/TestTermAttributeImpl.java Date: Thu, 21 Jan 2010 18:20:42 -0000 To: java-commits@lucene.apache.org From: mikemccand@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100121182042.49FCF2388906@eris.apache.org> Author: mikemccand Date: Thu Jan 21 18:20:41 2010 New Revision: 901812 URL: http://svn.apache.org/viewvc?rev=901812&view=rev Log: LUCENE-2213: fix back compat tests Modified: lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/TestToken.java lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/tokenattributes/TestTermAttributeImpl.java Modified: lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/TestToken.java URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/TestToken.java?rev=901812&r1=901811&r2=901812&view=diff ============================================================================== --- lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/TestToken.java (original) +++ lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/TestToken.java Thu Jan 21 18:20:41 2010 @@ -85,7 +85,6 @@ buf.append(buf.toString()); } assertEquals(1048576, t.termLength()); - assertEquals(1179654, t.termBuffer().length); // now as a string, first variant t = new Token(); @@ -99,7 +98,6 @@ buf.append(content); } assertEquals(1048576, t.termLength()); - assertEquals(1179654, t.termBuffer().length); // now as a string, second variant t = new Token(); @@ -113,7 +111,6 @@ buf.append(content); } assertEquals(1048576, t.termLength()); - assertEquals(1179654, t.termBuffer().length); // Test for slow growth to a long term t = new Token(); @@ -127,7 +124,6 @@ buf.append("a"); } assertEquals(20000, t.termLength()); - assertEquals(20167, t.termBuffer().length); // Test for slow growth to a long term t = new Token(); @@ -141,7 +137,6 @@ buf.append("a"); } assertEquals(20000, t.termLength()); - assertEquals(20167, t.termBuffer().length); } public void testToString() throws Exception { Modified: lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/tokenattributes/TestTermAttributeImpl.java URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/tokenattributes/TestTermAttributeImpl.java?rev=901812&r1=901811&r2=901812&view=diff ============================================================================== --- lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/tokenattributes/TestTermAttributeImpl.java (original) +++ lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/analysis/tokenattributes/TestTermAttributeImpl.java Thu Jan 21 18:20:41 2010 @@ -49,7 +49,6 @@ buf.append(buf.toString()); } assertEquals(1048576, t.termLength()); - assertEquals(1179654, t.termBuffer().length); // now as a string, first variant t = new TermAttributeImpl(); @@ -63,7 +62,6 @@ buf.append(content); } assertEquals(1048576, t.termLength()); - assertEquals(1179654, t.termBuffer().length); // now as a string, second variant t = new TermAttributeImpl(); @@ -77,7 +75,6 @@ buf.append(content); } assertEquals(1048576, t.termLength()); - assertEquals(1179654, t.termBuffer().length); // Test for slow growth to a long term t = new TermAttributeImpl(); @@ -91,7 +88,6 @@ buf.append("a"); } assertEquals(20000, t.termLength()); - assertEquals(20167, t.termBuffer().length); // Test for slow growth to a long term t = new TermAttributeImpl(); @@ -105,7 +101,6 @@ buf.append("a"); } assertEquals(20000, t.termLength()); - assertEquals(20167, t.termBuffer().length); } public void testToString() throws Exception {