change assume to SuppressCodecs for more test iterations over time

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1538556 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-11-04 11:16:00 +00:00
parent 02b7783c48
commit 5d448216d4
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import org.apache.lucene.facet.collections.ObjectToIntMap;
import org.apache.lucene.facet.search.FacetResult;
import org.apache.lucene.facet.search.FacetResultNode;
import org.apache.lucene.facet.taxonomy.CategoryPath;
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;
@ -26,6 +27,8 @@ import org.junit.Test;
* limitations under the License.
*/
// We require sorted set DVs:
@SuppressCodecs({"Lucene40", "Lucene41"})
public class TestSimpleSortedSetFacetsExample extends LuceneTestCase {
private static final ObjectToIntMap<CategoryPath> expectedCounts = new ObjectToIntMap<CategoryPath>();
@ -56,7 +59,6 @@ public class TestSimpleSortedSetFacetsExample extends LuceneTestCase {
@Test
public void testSimple() throws Exception {
assumeTrue("Test requires SortedSetDV support", defaultCodecSupportsSortedSet());
List<FacetResult> facetResults = new SimpleSortedSetFacetsExample().runSearch();
assertEquals(2, facetResults.size());
assertExpectedCounts(facetResults, expectedCounts);
@ -64,7 +66,6 @@ public class TestSimpleSortedSetFacetsExample extends LuceneTestCase {
@Test
public void testDrillDown() throws Exception {
assumeTrue("Test requires SortedSetDV support", defaultCodecSupportsSortedSet());
List<FacetResult> facetResults = new SimpleSortedSetFacetsExample().runDrillDown();
assertEquals(1, facetResults.size());
assertExpectedCounts(facetResults, expectedCountsDrillDown);