directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r902663 - /directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java
Date Sun, 24 Jan 2010 22:15:19 GMT
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) );
         }
     }
 



Mime
View raw message