From de8ede1e6c27e5d3cbe91083d2f3e295857942b4 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Mon, 7 May 2012 11:56:14 +0000 Subject: [PATCH] Upgraded Spring Security to 3.1.0 --- parent/pom.xml | 12 ------------ samples/airline/server/pom.xml | 7 ------- .../SpringFrequentFlyerSecurityServiceTest.java | 16 ++++++++-------- 3 files changed, 8 insertions(+), 27 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index ff80a5a7..72d44d9b 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -562,18 +562,6 @@ - - org.springframework.security - spring-security-core - 3.1.0.RELEASE - tests - - - org.springframework - spring-support - - - org.springframework.security spring-security-config diff --git a/samples/airline/server/pom.xml b/samples/airline/server/pom.xml index 6d1a8d3e..b497bbca 100644 --- a/samples/airline/server/pom.xml +++ b/samples/airline/server/pom.xml @@ -268,12 +268,5 @@ org.apache.ws.commons.schema XmlSchema - - - org.springframework.security - spring-security-core - tests - test - diff --git a/samples/airline/server/src/test/java/org/springframework/ws/samples/airline/security/SpringFrequentFlyerSecurityServiceTest.java b/samples/airline/server/src/test/java/org/springframework/ws/samples/airline/security/SpringFrequentFlyerSecurityServiceTest.java index b47063b7..6cbf5554 100644 --- a/samples/airline/server/src/test/java/org/springframework/ws/samples/airline/security/SpringFrequentFlyerSecurityServiceTest.java +++ b/samples/airline/server/src/test/java/org/springframework/ws/samples/airline/security/SpringFrequentFlyerSecurityServiceTest.java @@ -1,11 +1,11 @@ /* - * Copyright 2005-2010 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -16,17 +16,17 @@ package org.springframework.ws.samples.airline.security; -import junit.framework.TestCase; -import static org.easymock.EasyMock.*; - +import org.springframework.security.authentication.TestingAuthenticationToken; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextImpl; -import org.springframework.security.authentication.TestingAuthenticationToken; -import org.springframework.security.core.GrantedAuthority; import org.springframework.ws.samples.airline.dao.FrequentFlyerDao; import org.springframework.ws.samples.airline.domain.FrequentFlyer; +import junit.framework.TestCase; + +import static org.easymock.EasyMock.*; + public class SpringFrequentFlyerSecurityServiceTest extends TestCase { private SpringFrequentFlyerSecurityService securityService; @@ -42,7 +42,7 @@ public class SpringFrequentFlyerSecurityServiceTest extends TestCase { public void testGetCurrentlyAuthenticatedFrequentFlyer() throws Exception { FrequentFlyer frequentFlyer = new FrequentFlyer("john"); FrequentFlyerDetails detail = new FrequentFlyerDetails(frequentFlyer); - TestingAuthenticationToken token = new TestingAuthenticationToken(detail, null, new GrantedAuthority[]{}); + TestingAuthenticationToken token = new TestingAuthenticationToken(detail, null); SecurityContext context = new SecurityContextImpl(); context.setAuthentication(token); SecurityContextHolder.setContext(context);