: Why not use the @SuppressCodes annotation?

mike mentioned this in his reply to the jenkins failure...

>> I committed a fix, disabling Lucene3x for that test case.  I didn't
>> use @SuppressCodecs because the other tests should work fine w/
>> Lucene3x.

..perhaps putting this in the test as a comment owuld be useful?


: 
: -----
: Uwe Schindler
: H.-H.-Meier-Allee 63, D-28213 Bremen
: http://www.thetaphi.de
: eMail: [email protected]
: 
: 
: > -----Original Message-----
: > From: [email protected] [mailto:[email protected]]
: > Sent: Thursday, April 24, 2014 6:08 PM
: > To: [email protected]
: > Subject: svn commit: r1589782 -
: > /lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/
: > index/TestTerms.java
: > 
: > Author: mikemccand
: > Date: Thu Apr 24 16:07:30 2014
: > New Revision: 1589782
: > 
: > URL: http://svn.apache.org/r1589782
: > Log:
: > LUCENE-5610: don't use Lucene3x codec (the test writes arbitrary binary
: > terms)
: > 
: > Modified:
: > 
: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/i
: > ndex/TestTerms.java
: > 
: > Modified:
: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/i
: > ndex/TestTerms.java
: > URL:
: > http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/cor
: > e/src/test/org/apache/lucene/index/TestTerms.java?rev=1589782&r1=1589
: > 781&r2=1589782&view=diff
: > ==========================================================
: > ====================
: > ---
: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/i
: > ndex/TestTerms.java (original)
: > +++
: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene
: > +++ /index/TestTerms.java Thu Apr 24 16:07:30 2014
: > @@ -20,6 +20,8 @@ package org.apache.lucene.index;  import java.util.*;
: > 
: >  import org.apache.lucene.analysis.CannedBinaryTokenStream;
: > +import org.apache.lucene.codecs.Codec;
: > +import org.apache.lucene.codecs.lucene3x.Lucene3xCodec;
: >  import org.apache.lucene.document.Document;
: >  import org.apache.lucene.document.DoubleField;
: >  import org.apache.lucene.document.Field; @@ -51,6 +53,7 @@ public class
: > TestTerms extends LuceneTes
: >    }
: > 
: >    public void testTermMinMaxRandom() throws Exception {
: > +    assumeFalse("test writes binary terms", Codec.getDefault()
: > + instanceof Lucene3xCodec);
: >      Directory dir = newDirectory();
: >      RandomIndexWriter w = new RandomIndexWriter(random(), dir);
: >      int numDocs = atLeast(100);
: 
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: [email protected]
: For additional commands, e-mail: [email protected]
: 
: 

-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to