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:
Robert Muir 2012-04-09 17:21:46 +00:00
parent 79baa1f682
commit 2a01acc0e8
1 changed files with 5 additions and 2 deletions

View File

@ -475,7 +475,9 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
// TODO: maybe the collator one...??? // TODO: maybe the collator one...???
args[i] = AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY; args[i] = AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY;
} else if (paramType == AttributeSource.class) { } 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 { } else {
args[i] = newRandomArg(random, paramType); args[i] = newRandomArg(random, paramType);
} }
@ -660,7 +662,8 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
int numIterations = atLeast(20); int numIterations = atLeast(20);
for (int i = 0; i < numIterations; i++) { for (int i = 0; i < numIterations; i++) {
MockRandomAnalyzer a = new MockRandomAnalyzer(random.nextLong()); 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); System.out.println("Creating random analyzer:" + a);
} }
try { try {