You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by us...@apache.org on 2009/08/23 12:01:06 UTC

svn commit: r806947 - /lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java

Author: uschindler
Date: Sun Aug 23 10:01:05 2009
New Revision: 806947

URL: http://svn.apache.org/viewvc?rev=806947&view=rev
Log:
Change also the default LuceneTestCase to override runBare() instead of runTest(). This enables tests, to also monitor failures in random during setUp() and tearDown().

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java?rev=806947&r1=806946&r2=806947&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java Sun Aug 23 10:01:05 2009
@@ -199,10 +199,11 @@
     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);