|
@@ -18,12 +18,8 @@ import java.lang.reflect.Method;
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
|
|
|
import junit.framework.TestCase;
|
|
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.ConfigAttribute;
|
|
import org.springframework.security.access.SecurityConfig;
|
|
import org.springframework.security.access.SecurityConfig;
|
|
-import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -37,7 +33,6 @@ public class SecuredAnnotationSecurityMetadataDefinitionSourceTests extends Test
|
|
//~ Instance fields ================================================================================================
|
|
//~ Instance fields ================================================================================================
|
|
|
|
|
|
private SecuredAnnotationSecurityMetadataSource mds = new SecuredAnnotationSecurityMetadataSource();;
|
|
private SecuredAnnotationSecurityMetadataSource mds = new SecuredAnnotationSecurityMetadataSource();;
|
|
- private Log logger = LogFactory.getLog(SecuredAnnotationSecurityMetadataDefinitionSourceTests.class);
|
|
|
|
|
|
|
|
//~ Methods ========================================================================================================
|
|
//~ Methods ========================================================================================================
|
|
|
|
|
|
@@ -54,10 +49,6 @@ public class SecuredAnnotationSecurityMetadataDefinitionSourceTests extends Test
|
|
|
|
|
|
assertNotNull(attrs);
|
|
assertNotNull(attrs);
|
|
|
|
|
|
- if (logger.isDebugEnabled()) {
|
|
|
|
- logger.debug("attrs: " + StringUtils.collectionToCommaDelimitedString(attrs));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// expect 1 attribute
|
|
// expect 1 attribute
|
|
assertTrue("Did not find 1 attribute", attrs.size() == 1);
|
|
assertTrue("Did not find 1 attribute", attrs.size() == 1);
|
|
|
|
|
|
@@ -78,10 +69,6 @@ public class SecuredAnnotationSecurityMetadataDefinitionSourceTests extends Test
|
|
|
|
|
|
assertNotNull(superAttrs);
|
|
assertNotNull(superAttrs);
|
|
|
|
|
|
- if (logger.isDebugEnabled()) {
|
|
|
|
- logger.debug("superAttrs: " + StringUtils.collectionToCommaDelimitedString(superAttrs));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// This part of the test relates to SEC-274
|
|
// This part of the test relates to SEC-274
|
|
// expect 1 attribute
|
|
// expect 1 attribute
|
|
assertEquals("Did not find 1 attribute", 1, superAttrs.size());
|
|
assertEquals("Did not find 1 attribute", 1, superAttrs.size());
|