directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r893425 - /directory/sandbox/kayyagari/integ-test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java
Date Wed, 23 Dec 2009 08:23:13 GMT
Author: kayyagari
Date: Wed Dec 23 08:23:13 2009
New Revision: 893425

URL: http://svn.apache.org/viewvc?rev=893425&view=rev
Log:
o removed useless imports
o added a logger

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

Modified: directory/sandbox/kayyagari/integ-test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/integ-test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java?rev=893425&r1=893424&r2=893425&view=diff
==============================================================================
--- directory/sandbox/kayyagari/integ-test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java
(original)
+++ directory/sandbox/kayyagari/integ-test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkRunner.java
Wed Dec 23 08:23:13 2009
@@ -19,41 +19,25 @@
 package org.apache.directory.server.core.integ;
 
 
-import java.io.File;
 import java.lang.reflect.Field;
-import java.util.HashSet;
 import java.util.List;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicInteger;
 
 import javax.naming.NamingException;
 
 import org.apache.commons.io.FileUtils;
-import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.entry.DefaultServerEntry;
-import org.apache.directory.server.core.entry.ServerEntry;
-import org.apache.directory.server.core.partition.Partition;
-import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
-import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition;
-import org.apache.directory.server.core.partition.ldif.LdifPartition;
-import org.apache.directory.server.core.schema.SchemaPartition;
-import org.apache.directory.server.xdbm.Index;
-import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.ldif.LdifEntry;
 import org.apache.directory.shared.ldap.ldif.LdifReader;
-import org.apache.directory.shared.ldap.schema.SchemaManager;
-import org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor;
-import org.apache.directory.shared.ldap.schema.registries.SchemaLoader;
-import org.apache.directory.shared.ldap.util.ExceptionUtils;
-import org.apache.directory.shared.schema.DefaultSchemaManager;
-import org.apache.directory.shared.schema.loader.ldif.LdifSchemaLoader;
 import org.junit.Ignore;
 import org.junit.runner.Description;
 import org.junit.runner.notification.RunNotifier;
 import org.junit.runners.BlockJUnit4ClassRunner;
 import org.junit.runners.model.FrameworkMethod;
 import org.junit.runners.model.InitializationError;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -69,6 +53,8 @@
     private static DirectoryService suiteDirectoryService;
 
     private static AtomicInteger testCount = new AtomicInteger();
+
+    private static final Logger LOG = LoggerFactory.getLogger( FrameworkRunner.class );
     
     public FrameworkRunner( Class<?> clazz ) throws InitializationError
     {
@@ -161,7 +147,8 @@
         }
         catch ( Exception e )
         {
-            e.printStackTrace();
+            LOG.error( "Failed to run the class {}", getTestClass().getName() );
+            LOG.error( "", e );
         }
     }
 
@@ -214,7 +201,8 @@
         }
         catch ( Exception e )
         {
-            e.printStackTrace();
+            LOG.error( "Failed to run the method {}", method );
+            LOG.error( "", e );
         }
 
     }



Mime
View raw message