From da92c344042a1c525bffe9f8b54eb33318623dd0 Mon Sep 17 00:00:00 2001 From: David Wayne Smiley Date: Fri, 19 Dec 2014 16:52:45 +0000 Subject: [PATCH] LUCENE-6121: Fix a test to assumeTrue assertions enabled. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1646793 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/lucene/analysis/TestCachingTokenFilter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/core/src/test/org/apache/lucene/analysis/TestCachingTokenFilter.java b/lucene/core/src/test/org/apache/lucene/analysis/TestCachingTokenFilter.java index 76b204eb32d..e548d5b0ae1 100644 --- a/lucene/core/src/test/org/apache/lucene/analysis/TestCachingTokenFilter.java +++ b/lucene/core/src/test/org/apache/lucene/analysis/TestCachingTokenFilter.java @@ -120,6 +120,7 @@ public class TestCachingTokenFilter extends BaseTokenStreamTestCase { } public void testDoubleResetFails() throws IOException { + assumeTrue("We want MockAnalyzer to detect double-reset", TEST_ASSERTS_ENABLED); Analyzer analyzer = new MockAnalyzer(random()); final TokenStream input = analyzer.tokenStream("field", "abc"); CachingTokenFilter buffer = new CachingTokenFilter(input);