mirror of https://github.com/apache/lucene.git
LUCENE-3969: don't use scary attsource ctor yet, and always print the analyzer for now
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3969@1311339 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79baa1f682
commit
2a01acc0e8
|
@ -475,7 +475,9 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
|||
// TODO: maybe the collator one...???
|
||||
args[i] = AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY;
|
||||
} else if (paramType == AttributeSource.class) {
|
||||
args[i] = new AttributeSource();
|
||||
// nocommit: args[i] = new AttributeSource();
|
||||
// this is currently too scary to deal with!
|
||||
args[i] = null; // force IAE
|
||||
} else {
|
||||
args[i] = newRandomArg(random, paramType);
|
||||
}
|
||||
|
@ -660,7 +662,8 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
|||
int numIterations = atLeast(20);
|
||||
for (int i = 0; i < numIterations; i++) {
|
||||
MockRandomAnalyzer a = new MockRandomAnalyzer(random.nextLong());
|
||||
if (VERBOSE) {
|
||||
// nocommit: wrap the uncaught handler with our own that prints the analyzer
|
||||
if (true || VERBOSE) {
|
||||
System.out.println("Creating random analyzer:" + a);
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue