directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r883678 - /directory/apacheds/branches/apacheds-schema/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
Date Tue, 24 Nov 2009 13:03:46 GMT
Author: elecharny
Date: Tue Nov 24 13:03:45 2009
New Revision: 883678

URL: http://svn.apache.org/viewvc?rev=883678&view=rev
Log:
Removed a Junit fail() call in some normal code.

Modified:
    directory/apacheds/branches/apacheds-schema/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java

Modified: directory/apacheds/branches/apacheds-schema/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java?rev=883678&r1=883677&r2=883678&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
(original)
+++ directory/apacheds/branches/apacheds-schema/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
Tue Nov 24 13:03:45 2009
@@ -20,8 +20,6 @@
 package org.apache.directory.server.tools;
 
 
-import static org.junit.Assert.fail;
-
 import java.io.File;
 import java.io.FileWriter;
 import java.io.PrintWriter;
@@ -107,7 +105,7 @@
         
         if ( errors.size() != 0 )
         {
-            fail( "Schema load failed : " + ExceptionUtils.printErrors( errors ) );
+            throw new Exception( "Schema load failed : " + ExceptionUtils.printErrors( errors
) );
         }
 
         



Mime
View raw message