You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2010/01/24 23:15:19 UTC

svn commit: r902663 - /directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java

Author: seelmann
Date: Sun Jan 24 22:15:19 2010
New Revision: 902663

URL: http://svn.apache.org/viewvc?rev=902663&view=rev
Log:
Let the test fail if an exception is thrown (now two tests fail...)

Modified:
    directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java

Modified: directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java?rev=902663&r1=902662&r2=902663&view=diff
==============================================================================
--- directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java (original)
+++ directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java Sun Jan 24 22:15:19 2010
@@ -36,6 +36,7 @@
 import org.apache.directory.server.protocol.shared.transport.Transport;
 import org.junit.Ignore;
 import org.junit.runner.Description;
+import org.junit.runner.notification.Failure;
 import org.junit.runner.notification.RunNotifier;
 import org.junit.runners.BlockJUnit4ClassRunner;
 import org.junit.runners.model.FrameworkMethod;
@@ -250,7 +251,7 @@
         {
             LOG.error( I18n.err( I18n.ERR_181, getTestClass().getName() ) );
             LOG.error( e.getLocalizedMessage() );
-            e.printStackTrace();
+            notifier.fireTestFailure( new Failure(getDescription(), e) );
         }
     }
 
@@ -382,7 +383,7 @@
         {
             LOG.error( I18n.err( I18n.ERR_182, method ) );
             LOG.error( "", e );
-            e.printStackTrace();
+            notifier.fireTestFailure( new Failure(getDescription(), e) );
         }
     }