Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 50625 invoked from network); 10 Dec 2009 23:27:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 23:27:01 -0000 Received: (qmail 77451 invoked by uid 500); 10 Dec 2009 23:27:00 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 77361 invoked by uid 500); 10 Dec 2009 23:27:00 -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 77352 invoked by uid 99); 10 Dec 2009 23:27:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 23:27:00 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 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, 10 Dec 2009 23:26:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A44A823888DC; Thu, 10 Dec 2009 23:26:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r889463 - /lucene/java/trunk/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java Date: Thu, 10 Dec 2009 23:26:38 -0000 To: java-commits@lucene.apache.org From: kalle@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091210232638.A44A823888DC@eris.apache.org> Author: kalle Date: Thu Dec 10 23:26:37 2009 New Revision: 889463 URL: http://svn.apache.org/viewvc?rev=889463&view=rev Log: LUCENE-2144 Warning about descripancy during invalid use of the TermDocs API. Modified: lucene/java/trunk/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java Modified: lucene/java/trunk/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java?rev=889463&r1=889462&r2=889463&view=diff ============================================================================== --- lucene/java/trunk/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java (original) +++ lucene/java/trunk/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java Thu Dec 10 23:26:37 2009 @@ -220,7 +220,18 @@ // test seek default aprioriTermDocs = aprioriReader.termDocs(); testTermDocs = testReader.termDocs(); - // todo consider seeking and skipping some too + + // this is invalid use of the API, + // but if the response differs then it's an indication that something might have changed. + // in 2.9 and 3.0 the two TermDocs-implementations returned different values at this point. + assertEquals("Descripency during invalid use of the TermDocs API, see comments in test code for details.", + aprioriTermDocs.next(), testTermDocs.next()); + + // start using the API one is supposed to + + t = new Term("", ""); + aprioriTermDocs.seek(t); + testTermDocs.seek(t); while (aprioriTermDocs.next()) { assertTrue(testTermDocs.next());