mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Remove dead code in AclAuthorizationStrategyImplTests
This commit is contained in:
parent
2cb38ae115
commit
3185876a7d
@ -45,7 +45,6 @@ public class AclAuthorizationStrategyImplTests {
|
|||||||
@Before
|
@Before
|
||||||
public void setup() {
|
public void setup() {
|
||||||
authority = new SimpleGrantedAuthority("ROLE_AUTH");
|
authority = new SimpleGrantedAuthority("ROLE_AUTH");
|
||||||
strategy = new AclAuthorizationStrategyImpl(authority);
|
|
||||||
TestingAuthenticationToken authentication = new TestingAuthenticationToken("foo", "bar", Arrays.asList(authority));
|
TestingAuthenticationToken authentication = new TestingAuthenticationToken("foo", "bar", Arrays.asList(authority));
|
||||||
authentication.setAuthenticated(true);
|
authentication.setAuthenticated(true);
|
||||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user