give more debugging info in this case

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1525713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-09-23 22:17:23 +00:00
parent 876573650b
commit dabeab3b38
1 changed files with 1 additions and 0 deletions

View File

@ -392,6 +392,7 @@ public abstract class BaseTokenStreamTestCase extends LuceneTestCase {
// ok: MockTokenizer
assertTrue(expected.getMessage(), expected.getMessage() != null && expected.getMessage().contains("wrong state"));
} catch (Exception unexpected) {
unexpected.printStackTrace(System.err);
fail("got wrong exception when reset() not called: " + unexpected);
} finally {
// consume correctly