(no commit message)
[utils] / security / jpatest / src / test / java / org / wamblee / security / authentication / jpa / JpaUserAdministrationTest.java
index 2a0048e92037fa0d001da4546ec33f52d8f9b40f..548c83b3ce179ccd71be9e4f1a916983e6abf0bf 100644 (file)
@@ -17,12 +17,12 @@ package org.wamblee.security.authentication.jpa;
 
 import java.lang.reflect.Method;
 import java.sql.Connection;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.wamblee.security.authentication.UserAdministration;
 import org.wamblee.security.authentication.UserAdministrationImplTest;
-import org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork;
+import org.wamblee.test.persistence.DatabaseUtils.JdbcUnitOfWork;
 
 /**
  * User administration tests with persistence based on Hibernate. This executes
@@ -33,8 +33,8 @@ import org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork;
  * @author Erik Brakkee
  */
 public class JpaUserAdministrationTest extends UserAdministrationImplTest {
-    private static final Log LOG = LogFactory
-        .getLog(JpaUserAdministrationTest.class);
+    private static final Logger LOG = Logger
+        .getLogger(JpaUserAdministrationTest.class.getName());
 
     private UserAdministrationTester userAdminTester; 
 
@@ -84,8 +84,8 @@ public class JpaUserAdministrationTest extends UserAdministrationImplTest {
                             try {
                                 method.invoke(JpaUserAdministrationTest.this);
                             } catch (Throwable t) {
-                                LOG.error("Test " + method.getName() +
-                                    " failed");
+                                LOG.log(Level.WARNING, "Test " + method.getName() +
+                                    " failed", t);
                                 throw new RuntimeException(t.getMessage(), t);
                             } finally {
                                 LOG.info("Test " + method.getName() +