Corrected references to old context class names in Javadoc and logging.
This commit is contained in:
@@ -69,7 +69,7 @@ public class ContextPropagatingRemoteInvocationTests extends TestCase {
|
||||
SecurityContextHolder.setContext(new SecurityContextImpl());
|
||||
|
||||
// The result from invoking the TargetObject should contain the
|
||||
// Authentication class delivered via the ContextHolder
|
||||
// Authentication class delivered via the SecurityContextHolder
|
||||
assertEquals("some_string net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken false",
|
||||
remoteInvocation.invoke(new TargetObject()));
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public class SecurityEnforcementFilterTests extends TestCase {
|
||||
MockFilterSecurityInterceptor interceptor = new MockFilterSecurityInterceptor(true,
|
||||
false, false, false);
|
||||
|
||||
// Setup ContextHolder, as filter needs to check if user is anonymous
|
||||
// Setup SecurityContextHolder, as filter needs to check if user is anonymous
|
||||
SecurityContextHolder.getContext().setAuthentication(new AnonymousAuthenticationToken(
|
||||
"ignored", "ignored",
|
||||
new GrantedAuthority[] {new GrantedAuthorityImpl("IGNORED")}));
|
||||
@@ -113,7 +113,7 @@ public class SecurityEnforcementFilterTests extends TestCase {
|
||||
MockFilterSecurityInterceptor interceptor = new MockFilterSecurityInterceptor(true,
|
||||
false, false, false);
|
||||
|
||||
// Setup ContextHolder, as filter needs to check if user is anonymous
|
||||
// Setup SecurityContextHolder, as filter needs to check if user is anonymous
|
||||
SecurityContextHolder.getContext().setAuthentication(null);
|
||||
|
||||
// Test
|
||||
|
||||
@@ -104,7 +104,7 @@ public class AnonymousProcessingFilterTests extends TestCase {
|
||||
|
||||
public void testOperationWhenAuthenticationExistsInContextHolder()
|
||||
throws Exception {
|
||||
// Put an Authentication object into the ContextHolder
|
||||
// Put an Authentication object into the SecurityContextHolder
|
||||
Authentication originalAuth = new TestingAuthenticationToken("user",
|
||||
"password",
|
||||
new GrantedAuthority[] { new GrantedAuthorityImpl("ROLE_A") });
|
||||
|
||||
@@ -30,7 +30,7 @@ import javax.security.auth.login.LoginException;
|
||||
|
||||
|
||||
/**
|
||||
* DOCUMENT ME!
|
||||
* Testst SecureContextLoginModule
|
||||
*
|
||||
* @author Ray Krueger
|
||||
*/
|
||||
@@ -57,7 +57,7 @@ public class SecureContextLoginModuleTests extends TestCase {
|
||||
try {
|
||||
module.login();
|
||||
fail(
|
||||
"LoginException expected, there is no Authentication in the SecureContext");
|
||||
"LoginException expected, there is no Authentication in the SecurityContext");
|
||||
} catch (LoginException e) {}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ public class SecureContextLoginModuleTests extends TestCase {
|
||||
try {
|
||||
SecurityContextHolder.getContext().setAuthentication(null);
|
||||
module.login();
|
||||
fail("LoginException expected, the authentication is null in the SecureContext");
|
||||
fail("LoginException expected, the authentication is null in the SecurityContext");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class RememberMeProcessingFilterTests extends TestCase {
|
||||
|
||||
public void testOperationWhenAuthenticationExistsInContextHolder()
|
||||
throws Exception {
|
||||
// Put an Authentication object into the ContextHolder
|
||||
// Put an Authentication object into the SecurityContextHolder
|
||||
Authentication originalAuth = new TestingAuthenticationToken("user",
|
||||
"password",
|
||||
new GrantedAuthority[] {new GrantedAuthorityImpl("ROLE_A")});
|
||||
|
||||
Reference in New Issue
Block a user