mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
Move to annotation package to avoid jarsigner problems during deployment.
This commit is contained in:
parent
22183648b3
commit
4fd3693df0
@ -21,13 +21,13 @@ import java.lang.reflect.Method;
|
|||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import org.acegisecurity.ConfigAttributeDefinition;
|
import org.acegisecurity.ConfigAttributeDefinition;
|
||||||
import org.acegisecurity.Entity;
|
|
||||||
import org.acegisecurity.OrganisationService;
|
|
||||||
import org.acegisecurity.PersonService;
|
|
||||||
import org.acegisecurity.PersonServiceImpl;
|
|
||||||
import org.acegisecurity.SecurityConfig;
|
import org.acegisecurity.SecurityConfig;
|
||||||
import org.acegisecurity.Service;
|
import org.acegisecurity.annotation.test.Entity;
|
||||||
import org.acegisecurity.ServiceImpl;
|
import org.acegisecurity.annotation.test.OrganisationService;
|
||||||
|
import org.acegisecurity.annotation.test.PersonService;
|
||||||
|
import org.acegisecurity.annotation.test.PersonServiceImpl;
|
||||||
|
import org.acegisecurity.annotation.test.Service;
|
||||||
|
import org.acegisecurity.annotation.test.ServiceImpl;
|
||||||
import org.acegisecurity.intercept.method.MethodDefinitionMap;
|
import org.acegisecurity.intercept.method.MethodDefinitionMap;
|
||||||
import org.acegisecurity.intercept.method.MethodDefinitionSourceEditor;
|
import org.acegisecurity.intercept.method.MethodDefinitionSourceEditor;
|
||||||
import org.aopalliance.intercept.MethodInvocation;
|
import org.aopalliance.intercept.MethodInvocation;
|
||||||
@ -64,7 +64,7 @@ public class MethodDefinitionSourceEditorTigerTests extends TestCase {
|
|||||||
throws Exception {
|
throws Exception {
|
||||||
MethodDefinitionSourceEditor editor = new MethodDefinitionSourceEditor();
|
MethodDefinitionSourceEditor editor = new MethodDefinitionSourceEditor();
|
||||||
editor.setAsText(
|
editor.setAsText(
|
||||||
"org.acegisecurity.Service.makeLower*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.Service.makeUpper*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.ServiceImpl.makeUpper*=ROLE_FROM_IMPLEMENTATION");
|
"org.acegisecurity.annotation.test.Service.makeLower*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.annotation.test.Service.makeUpper*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.annotation.test.ServiceImpl.makeUpper*=ROLE_FROM_IMPLEMENTATION");
|
||||||
|
|
||||||
MethodDefinitionMap map = (MethodDefinitionMap) editor.getValue();
|
MethodDefinitionMap map = (MethodDefinitionMap) editor.getValue();
|
||||||
assertEquals(3, map.getMethodMapSize());
|
assertEquals(3, map.getMethodMapSize());
|
||||||
@ -87,7 +87,7 @@ public class MethodDefinitionSourceEditorTigerTests extends TestCase {
|
|||||||
throws Exception {
|
throws Exception {
|
||||||
MethodDefinitionSourceEditor editor = new MethodDefinitionSourceEditor();
|
MethodDefinitionSourceEditor editor = new MethodDefinitionSourceEditor();
|
||||||
editor.setAsText(
|
editor.setAsText(
|
||||||
"org.acegisecurity.Service.makeLower*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.Service.makeUpper*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.ServiceImpl.makeUpper*=ROLE_FROM_IMPLEMENTATION");
|
"org.acegisecurity.annotation.test.Service.makeLower*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.annotation.test.Service.makeUpper*=ROLE_FROM_INTERFACE\r\norg.acegisecurity.annotation.test.ServiceImpl.makeUpper*=ROLE_FROM_IMPLEMENTATION");
|
||||||
|
|
||||||
MethodDefinitionMap map = (MethodDefinitionMap) editor.getValue();
|
MethodDefinitionMap map = (MethodDefinitionMap) editor.getValue();
|
||||||
assertEquals(3, map.getMethodMapSize());
|
assertEquals(3, map.getMethodMapSize());
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An extended version of <code>Entity</code>.
|
* An extended version of <code>Entity</code>.
|
@ -13,13 +13,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOCUMENT ME!
|
* DOCUMENT ME!
|
||||||
*
|
*
|
||||||
* @author $author$
|
* @author $author$
|
||||||
* @version $Revision$
|
* @version $Revision: 1496 $
|
||||||
*/
|
*/
|
||||||
public interface OrganisationService extends Service<Organisation> {
|
public interface OrganisationService extends Service<Organisation> {
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
@ -13,13 +13,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOCUMENT ME!
|
* DOCUMENT ME!
|
||||||
*
|
*
|
||||||
* @author $author$
|
* @author $author$
|
||||||
* @version $Revision$
|
* @version $Revision: 1496 $
|
||||||
*/
|
*/
|
||||||
public class OrganisationServiceImpl extends ServiceImpl<Organisation> implements OrganisationService {
|
public class OrganisationServiceImpl extends ServiceImpl<Organisation> implements OrganisationService {
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An extended version of <code>Entity</code>.
|
* An extended version of <code>Entity</code>.
|
@ -13,13 +13,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOCUMENT ME!
|
* DOCUMENT ME!
|
||||||
*
|
*
|
||||||
* @author $author$
|
* @author $author$
|
||||||
* @version $Revision$
|
* @version $Revision: 1496 $
|
||||||
*/
|
*/
|
||||||
public interface PersonService extends Service<Person> {
|
public interface PersonService extends Service<Person> {
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
@ -13,13 +13,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOCUMENT ME!
|
* DOCUMENT ME!
|
||||||
*
|
*
|
||||||
* @author $author$
|
* @author $author$
|
||||||
* @version $Revision$
|
* @version $Revision: 1496 $
|
||||||
*/
|
*/
|
||||||
public class PersonServiceImpl extends ServiceImpl<Person> implements PersonService {
|
public class PersonServiceImpl extends ServiceImpl<Person> implements PersonService {
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.acegisecurity;
|
package org.acegisecurity.annotation.test;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ import java.util.Collection;
|
|||||||
* DOCUMENT ME!
|
* DOCUMENT ME!
|
||||||
*
|
*
|
||||||
* @author $author$
|
* @author $author$
|
||||||
* @version $Revision$
|
* @version $Revision: 1496 $
|
||||||
*
|
*
|
||||||
* @param <E> DOCUMENT ME!
|
* @param <E> DOCUMENT ME!
|
||||||
*/
|
*/
|
Loading…
x
Reference in New Issue
Block a user