Corrected references to old context class names in Javadoc and logging.

This commit is contained in:
Luke Taylor
2005-11-05 18:49:55 +00:00
parent 5a51f391a4
commit 5cb7575b2b
27 changed files with 80 additions and 84 deletions

View File

@@ -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()));
}

View File

@@ -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

View File

@@ -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") });

View File

@@ -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) {
}
}

View File

@@ -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")});