1
0
mirror of synced 2026-08-06 02:08:01 +00:00

SEC-1035: Updated build to use Spring 3.0.0.M1 Release

This commit is contained in:
Luke Taylor
2008-12-18 02:37:00 +00:00
parent 8f598e9b11
commit 8154161ef5
23 changed files with 265 additions and 186 deletions
@@ -15,25 +15,26 @@
package org.springframework.security.taglibs.authz;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.el.ExpressionEvaluator;
import javax.servlet.jsp.el.VariableResolver;
import javax.servlet.jsp.tagext.Tag;
import junit.framework.TestCase;
import org.jmock.Mockery;
import org.springframework.mock.web.MockPageContext;
import org.springframework.security.GrantedAuthority;
import org.springframework.security.GrantedAuthorityImpl;
import org.springframework.security.context.SecurityContextHolder;
import org.springframework.security.providers.TestingAuthenticationToken;
import org.springframework.mock.web.MockPageContext;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.Tag;
/**
* Test case to implement commons-el expression language expansion.
*/
public class AuthorizeTagExpressionLanguageTests extends TestCase {
Mockery jmock = new Mockery();
//~ Instance fields ================================================================================================
private final AuthorizeTag authorizeTag = new AuthorizeTag();
@@ -43,7 +44,11 @@ public class AuthorizeTagExpressionLanguageTests extends TestCase {
//~ Methods ========================================================================================================
protected void setUp() throws Exception {
pageContext = new MockPageContext();
pageContext = new MockPageContext() {
public VariableResolver getVariableResolver() {
return null;
}
};
authorizeTag.setPageContext(pageContext);
currentUser = new TestingAuthenticationToken("abc", "123",