lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r806947 - /lucene/java/trunk/src/test/org/apache/lucene/util/LuceneTestCase.java
Date Sun, 23 Aug 2009 10:01:06 GMT
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);



Mime
View raw message