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;
* @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;
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() +