(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Thu, 22 Jul 2010 11:53:33 +0000 (11:53 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Thu, 22 Jul 2010 11:53:33 +0000 (11:53 +0000)
security/jpatest/src/test/java/org/wamblee/security/authentication/jpa/JpaUserAdministrationTest.java

index 9084a3f8433a41e099ad5802783a011e6276dc07..548c83b3ce179ccd71be9e4f1a916983e6abf0bf 100644 (file)
@@ -17,9 +17,9 @@ 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.test.persistence.DatabaseUtils.JdbcUnitOfWork;
@@ -33,8 +33,8 @@ import org.wamblee.test.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() +