Tidying.
This commit is contained in:
parent
cffd3131f0
commit
2d3d5ceb8d
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author luke
|
* @author Luke Taylor
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class InterceptMethodsBeanDefinitionDecorator extends AbstractInterceptorDrivenBeanDefinitionDecorator {
|
public class InterceptMethodsBeanDefinitionDecorator extends AbstractInterceptorDrivenBeanDefinitionDecorator {
|
||||||
|
|
|
@ -2,7 +2,6 @@ package org.springframework.security.config;
|
||||||
|
|
||||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||||
import org.springframework.security.context.SecurityContextHolder;
|
import org.springframework.security.context.SecurityContextHolder;
|
||||||
import org.springframework.security.context.SecurityContext;
|
|
||||||
import org.springframework.security.providers.UsernamePasswordAuthenticationToken;
|
import org.springframework.security.providers.UsernamePasswordAuthenticationToken;
|
||||||
import org.springframework.security.GrantedAuthority;
|
import org.springframework.security.GrantedAuthority;
|
||||||
import org.springframework.security.GrantedAuthorityImpl;
|
import org.springframework.security.GrantedAuthorityImpl;
|
||||||
|
@ -13,7 +12,7 @@ import static org.junit.Assert.*;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author luke
|
* @author Luke Taylor
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class InterceptMethodsBeanDefinitionDecoratorTests {
|
public class InterceptMethodsBeanDefinitionDecoratorTests {
|
||||||
|
@ -45,12 +44,7 @@ public class InterceptMethodsBeanDefinitionDecoratorTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void targetShouldAllowUnprotectedMethodInvocationWithNoContext() {
|
public void targetShouldAllowUnprotectedMethodInvocationWithNoContext() {
|
||||||
|
|
||||||
// UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("Test", "Password",
|
|
||||||
// new GrantedAuthority[] {new GrantedAuthorityImpl("MOCK_LOWER")});
|
|
||||||
|
|
||||||
target.unprotected();
|
target.unprotected();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -84,6 +78,4 @@ public class InterceptMethodsBeanDefinitionDecoratorTests {
|
||||||
} catch (AccessDeniedException expected) {
|
} catch (AccessDeniedException expected) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue