SEC-239: changed order url is created in to reflect new processing filter url order

This commit is contained in:
Scott Battaglia 2006-05-04 19:31:28 +00:00
parent aee934812a
commit ab05cb95ff
1 changed files with 1 additions and 6 deletions

View File

@ -17,16 +17,11 @@ package org.acegisecurity.ui.cas;
import junit.framework.TestCase;
import java.net.URLEncoder;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
/**
* Tests {@link CasProcessingFilterEntryPoint}.
*
@ -129,7 +124,7 @@ public class CasProcessingFilterEntryPointTests extends TestCase {
ep.afterPropertiesSet();
ep.commence(request, response, null);
assertEquals("https://cas/login?renew=true&service=https://mycompany.com/bigWebApp/j_acegi_cas_security_check",
assertEquals("https://cas/login?service=" + URLEncoder.encode("https://mycompany.com/bigWebApp/j_acegi_cas_security_check", "UTF-8") + "&renew=true",
response.getRedirectedUrl());
}
}