1
0
mirror of synced 2026-08-05 09:47:05 +00:00

Remove commons-logging dependency properly and switch tutorial sample to logback/slf4j.

This commit is contained in:
Luke Taylor
2010-07-23 01:57:15 +01:00
parent 118af45b8e
commit 2afccfc633
6 changed files with 28 additions and 44 deletions
@@ -18,12 +18,8 @@ import java.lang.reflect.Method;
import java.util.Collection;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.access.SecurityConfig;
import org.springframework.util.StringUtils;
/**
@@ -37,7 +33,6 @@ public class SecuredAnnotationSecurityMetadataDefinitionSourceTests extends Test
//~ Instance fields ================================================================================================
private SecuredAnnotationSecurityMetadataSource mds = new SecuredAnnotationSecurityMetadataSource();;
private Log logger = LogFactory.getLog(SecuredAnnotationSecurityMetadataDefinitionSourceTests.class);
//~ Methods ========================================================================================================
@@ -54,10 +49,6 @@ public class SecuredAnnotationSecurityMetadataDefinitionSourceTests extends Test
assertNotNull(attrs);
if (logger.isDebugEnabled()) {
logger.debug("attrs: " + StringUtils.collectionToCommaDelimitedString(attrs));
}
// expect 1 attribute
assertTrue("Did not find 1 attribute", attrs.size() == 1);
@@ -78,10 +69,6 @@ public class SecuredAnnotationSecurityMetadataDefinitionSourceTests extends Test
assertNotNull(superAttrs);
if (logger.isDebugEnabled()) {
logger.debug("superAttrs: " + StringUtils.collectionToCommaDelimitedString(superAttrs));
}
// This part of the test relates to SEC-274
// expect 1 attribute
assertEquals("Did not find 1 attribute", 1, superAttrs.size());