mirror of https://github.com/apache/lucene.git
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:
parent
2a95001cee
commit
da92c34404
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue