mirror of https://github.com/apache/lucene.git
use 'reader' in code to make it easier to disable evilReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ab21c7dcd6
commit
1cf0ee7471
|
@ -740,7 +740,7 @@ public abstract class BaseTokenStreamTestCase extends LuceneTestCase {
|
||||||
// currently allow it, so, we must call
|
// currently allow it, so, we must call
|
||||||
// a.tokenStream inside the try since we may
|
// a.tokenStream inside the try since we may
|
||||||
// hit the exc on init:
|
// hit the exc on init:
|
||||||
ts = a.tokenStream("dummy", useCharFilter ? new MockCharFilter(evilReader, remainder) : evilReader);
|
ts = a.tokenStream("dummy", useCharFilter ? new MockCharFilter(reader, remainder) : reader);
|
||||||
ts.reset();
|
ts.reset();
|
||||||
while (ts.incrementToken());
|
while (ts.incrementToken());
|
||||||
fail("did not hit exception");
|
fail("did not hit exception");
|
||||||
|
|
Loading…
Reference in New Issue