<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
- <version>1.8.0</version>
+ <version>1.8.5</version>
<scope>test</scope>
</dependency>
<version>${spring.version}</version>
</dependency>
- <!-- should be possible to remove the dependence on log4j -->
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.8</version>
- </dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
*/
package org.wamblee.security.authorization.jpa;
-import org.apache.log4j.Logger;
+
+import java.util.logging.Logger;
+
import org.wamblee.security.authentication.jpa.SecurityPersistenceUnit;
import org.wamblee.security.authorization.AuthorizationService;
import org.wamblee.security.authorization.AuthorizationServiceTest;
*/
public class JpaAuthorizationServiceTest extends AuthorizationServiceTest {
private static final Logger LOGGER = Logger
- .getLogger(JpaAuthorizationServiceTest.class);
+ .getLogger(JpaAuthorizationServiceTest.class.getName());
private static final String SERVICE_TABLE = "SEC_AUTH_SVC";
*/
package org.wamblee.security.authentication;
-import org.apache.log4j.Logger;
+import java.util.logging.Logger;
/**
* User administration initializer. It populates the user administration with a
*/
public class UserAdminInitializer {
private static final Logger LOGGER = Logger
- .getLogger(UserAdminInitializer.class);
+ .getLogger(UserAdminInitializer.class.getName());
/**
* Initializes the user administration in case no users are present.
*/
package org.wamblee.security.authorization;
-import org.apache.log4j.Logger;
+import java.util.logging.Logger;
/**
* Inititializer class for authorization rules. This class initializes the
*/
public class AuthorizationInitializer {
private static final Logger LOGGER = Logger
- .getLogger(AuthorizationInitializer.class);
+ .getLogger(AuthorizationInitializer.class.getName());
/**
* Initializes authorization rules in case none are present.
import static org.wamblee.security.authorization.AuthorizationResult.*;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.CascadeType;
import javax.persistence.OneToOne;
import javax.persistence.Transient;
-import org.apache.log4j.Logger;
import org.wamblee.security.authentication.UserAdministration;
/**
@Access(AccessType.PROPERTY)
public abstract class UrlAuthorizationRule extends AbstractAuthorizationRule {
private static final Logger LOGGER = Logger
- .getLogger(UrlAuthorizationRule.class);
+ .getLogger(UrlAuthorizationRule.class.getName());
/**
* Result that the rule will return in case there is a match.
try {
resourceClass = Class.forName(aResourceClass);
} catch (ClassNotFoundException e) {
- LOGGER.error("Cannot find resource class '" + aResourceClass + "'",
+ LOGGER.log(Level.SEVERE, "Cannot find resource class '" + aResourceClass + "'",
e);
throw new IllegalArgumentException(e.getMessage(), e);
}
package org.wamblee.security.authentication;
import java.util.List;
+import java.util.logging.Logger;
import junit.framework.TestCase;
-import org.apache.log4j.Logger;
import org.wamblee.security.authentication.UserMgtException.Reason;
import org.wamblee.security.encryption.Md5HexMessageDigester;
*/
public class UserAdministrationImplTest extends TestCase {
private static final Logger LOGGER = Logger
- .getLogger(UserAdministrationImplTest.class);
+ .getLogger(UserAdministrationImplTest.class.getName());
private static final String USER1 = "piet";
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
- <!-- should be possible to remove the dependence on log4j -->
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>