lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: svn commit: r1188089 - /lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
Date Mon, 24 Oct 2011 13:01:02 GMT
Thats right, this is still an open issue :-)

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Michael McCandless [mailto:lucene@mikemccandless.com]
> Sent: Monday, October 24, 2011 2:43 PM
> To: dev@lucene.apache.org
> Subject: Re: svn commit: r1188089 -
> /lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestIndexWriterD
> elete.java
> 
> But then I should break test into new class right?  /me was being lazy...
and this
> test only uses the one field...
> 
> Mike McCandless
> 
> http://blog.mikemccandless.com
> 
> On Mon, Oct 24, 2011 at 7:29 AM, Uwe Schindler <uwe@thetaphi.de> wrote:
> > Mike,
> >
> > We have an annotation for this... No assume needed anymore. :-)
> >
> > Uwe
> >
> > -----
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, D-28213 Bremen
> > http://www.thetaphi.de
> > eMail: uwe@thetaphi.de
> >
> >
> >> -----Original Message-----
> >> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
> >> Sent: Monday, October 24, 2011 1:00 PM
> >> To: commits@lucene.apache.org
> >> Subject: svn commit: r1188089 -
> >> /lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestIndexWr
> >> iterD
> >> elete.java
> >>
> >> Author: mikemccand
> >> Date: Mon Oct 24 11:00:29 2011
> >> New Revision: 1188089
> >>
> >> URL: http://svn.apache.org/viewvc?rev=1188089&view=rev
> >> Log:
> >> don't use MemCodec/SimpleText for this test
> >>
> >> Modified:
> >>
> >> lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestIndexWri
> >> terDe
> >> lete.java
> >>
> >> Modified:
> >> lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestIndexWri
> >> terDe
> >> lete.java
> >> URL:
> >> http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apa
> >> che/luc
> >>
> ene/index/TestIndexWriterDelete.java?rev=1188089&r1=1188088&r2=118808
> >> 9&view=diff
> >>
> ================================================================
> >> ==============
> >> ---
> >> lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestIndexWri
> >> terDe
> >> lete.java (original)
> >> +++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestInde
> >> +++ xWr iterDelete.java Mon Oct 24 11:00:29 2011
> >> @@ -23,14 +23,15 @@ import java.util.ArrayList;  import
> >> java.util.Collections; import java.util.List;  import
> >> java.util.Random; -import java.util.concurrent.atomic.AtomicInteger;
> >>  import java.util.concurrent.atomic.AtomicBoolean;
> >> +import java.util.concurrent.atomic.AtomicInteger;
> >>
> >>  import org.apache.lucene.analysis.*;
> >>  import org.apache.lucene.document.Document;
> >>  import org.apache.lucene.document.FieldType;
> >>  import org.apache.lucene.document.StringField;
> >>  import org.apache.lucene.document.TextField;
> >> +import org.apache.lucene.index.codecs.CodecProvider;
> >>  import org.apache.lucene.search.IndexSearcher;
> >>  import org.apache.lucene.search.ScoreDoc;
> >>  import org.apache.lucene.search.TermQuery;
> >> @@ -896,6 +897,8 @@ public class TestIndexWriterDelete exten
> >>    }
> >>
> >>    public void testIndexingThenDeleting() throws Exception {
> >> +    assumeFalse("This test cannot run with Memory codec",
> >> CodecProvider.getDefault().getFieldCodec("field").equals("Memory"));
> >> +    assumeFalse("This test cannot run with SimpleText codec",
> >> + CodecProvider.getDefault().getFieldCodec("field").equals("SimpleTex
> >> + t")
> >> + );
> >>      final Random r = random;
> >>      Directory dir = newDirectory();
> >>      // note this test explicitly disables payloads
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> > additional commands, e-mail: dev-help@lucene.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message