Skip to content

Commit de8ede1

Browse files
committed
Upgraded Spring Security to 3.1.0
1 parent be5b079 commit de8ede1

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

parent/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -562,18 +562,6 @@
562562
</exclusion>
563563
</exclusions>
564564
</dependency>
565-
<dependency>
566-
<groupId>org.springframework.security</groupId>
567-
<artifactId>spring-security-core</artifactId>
568-
<version>3.1.0.RELEASE</version>
569-
<classifier>tests</classifier>
570-
<exclusions>
571-
<exclusion>
572-
<groupId>org.springframework</groupId>
573-
<artifactId>spring-support</artifactId>
574-
</exclusion>
575-
</exclusions>
576-
</dependency>
577565
<dependency>
578566
<groupId>org.springframework.security</groupId>
579567
<artifactId>spring-security-config</artifactId>

samples/airline/server/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,5 @@
268268
<groupId>org.apache.ws.commons.schema</groupId>
269269
<artifactId>XmlSchema</artifactId>
270270
</dependency>
271-
<!-- Test dependencies -->
272-
<dependency>
273-
<groupId>org.springframework.security</groupId>
274-
<artifactId>spring-security-core</artifactId>
275-
<classifier>tests</classifier>
276-
<scope>test</scope>
277-
</dependency>
278271
</dependencies>
279272
</project>

samples/airline/server/src/test/java/org/springframework/ws/samples/airline/security/SpringFrequentFlyerSecurityServiceTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2005-2010 the original author or authors.
2+
* Copyright 2005-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,17 +16,17 @@
1616

1717
package org.springframework.ws.samples.airline.security;
1818

19-
import junit.framework.TestCase;
20-
import static org.easymock.EasyMock.*;
21-
19+
import org.springframework.security.authentication.TestingAuthenticationToken;
2220
import org.springframework.security.core.context.SecurityContext;
2321
import org.springframework.security.core.context.SecurityContextHolder;
2422
import org.springframework.security.core.context.SecurityContextImpl;
25-
import org.springframework.security.authentication.TestingAuthenticationToken;
26-
import org.springframework.security.core.GrantedAuthority;
2723
import org.springframework.ws.samples.airline.dao.FrequentFlyerDao;
2824
import org.springframework.ws.samples.airline.domain.FrequentFlyer;
2925

26+
import junit.framework.TestCase;
27+
28+
import static org.easymock.EasyMock.*;
29+
3030
public class SpringFrequentFlyerSecurityServiceTest extends TestCase {
3131

3232
private SpringFrequentFlyerSecurityService securityService;
@@ -42,7 +42,7 @@ protected void setUp() throws Exception {
4242
public void testGetCurrentlyAuthenticatedFrequentFlyer() throws Exception {
4343
FrequentFlyer frequentFlyer = new FrequentFlyer("john");
4444
FrequentFlyerDetails detail = new FrequentFlyerDetails(frequentFlyer);
45-
TestingAuthenticationToken token = new TestingAuthenticationToken(detail, null, new GrantedAuthority[]{});
45+
TestingAuthenticationToken token = new TestingAuthenticationToken(detail, null);
4646
SecurityContext context = new SecurityContextImpl();
4747
context.setAuthentication(token);
4848
SecurityContextHolder.setContext(context);

0 commit comments

Comments
 (0)