From dabeab3b38fdf40935245088410e0fc61d30d8a5 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 23 Sep 2013 22:17:23 +0000 Subject: [PATCH] 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 --- .../java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java index 10ebc302529..c1227038957 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/analysis/BaseTokenStreamTestCase.java @@ -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