You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2013/10/13 19:06:27 UTC
svn commit: r1531714 -
/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java
Author: shaie
Date: Sun Oct 13 17:06:26 2013
New Revision: 1531714
URL: http://svn.apache.org/r1531714
Log:
fix test bug
Modified:
lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java?rev=1531714&r1=1531713&r2=1531714&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java Sun Oct 13 17:06:26 2013
@@ -473,6 +473,9 @@ public class TestDirectoryTaxonomyReader
int numCategories = atLeast(10);
int numA = 0, numB = 0;
Random random = random();
+ // add the two categories for which we'll also add children (so asserts are simpler)
+ taxoWriter.addCategory(new CategoryPath("a"));
+ taxoWriter.addCategory(new CategoryPath("b"));
for (int i = 0; i < numCategories; i++) {
if (random.nextBoolean()) {
taxoWriter.addCategory(new CategoryPath("a", Integer.toString(i)));