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
This commit is contained in:
David Wayne Smiley 2014-12-19 16:52:45 +00:00
parent 2a95001cee
commit da92c34404
1 changed files with 1 additions and 0 deletions

View File

@ -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);