Change also the default LuceneTestCase to override runBare() instead of runTest(). This enables tests, to also monitor failures in random during setUp() and tearDown().

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-08-23 10:01:05 +00:00
parent 64ed5f39a5
commit 47ddf173a7
1 changed files with 3 additions and 2 deletions

View File

@ -199,10 +199,11 @@ public abstract class LuceneTestCase extends TestCase {
return new Random(seed);
}
protected void runTest() throws Throwable {
// @Override
public void runBare() throws Throwable {
try {
seed = null;
super.runTest();
super.runBare();
} catch (Throwable e) {
if (seed != null) {
System.out.println("NOTE: random seed of testcase '" + getName() + "' was: " + seed);