lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1391902 - /lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
Date Sat, 29 Sep 2012 22:11:10 GMT
Author: rmuir
Date: Sat Sep 29 22:11:10 2012
New Revision: 1391902

URL: http://svn.apache.org/viewvc?rev=1391902&view=rev
Log:
reinit these in beforeClass

Modified:
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java?rev=1391902&r1=1391901&r2=1391902&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
Sat Sep 29 22:11:10 2012
@@ -154,6 +154,9 @@ public abstract class BasePostingsFormat
 
   @BeforeClass
   public static void createPostings() throws IOException {
+    maxDocID = 0;
+    totalPostings = 0;
+    totalPayloadBytes = 0;
     fields = new TreeMap<String,Map<BytesRef,List<Posting>>>();
     fieldsLive = new TreeMap<String,Map<BytesRef,List<Posting>>>();
 



Mime
View raw message