Fix typos in spring-security core module
This commit is contained in:
committed by
Marcus Hert Da Coregio
parent
318dec845a
commit
1589d19c8b
@@ -35,7 +35,7 @@ public class UsernamePasswordAuthenticationTokenTests {
|
||||
public void authenticatedPropertyContractIsSatisfied() {
|
||||
UsernamePasswordAuthenticationToken grantedToken = UsernamePasswordAuthenticationToken.authenticated("Test",
|
||||
"Password", AuthorityUtils.NO_AUTHORITIES);
|
||||
// check default given we passed some GrantedAuthorty[]s (well, we passed empty
|
||||
// check default given we passed some GrantedAuthority[]s (well, we passed empty
|
||||
// list)
|
||||
assertThat(grantedToken.isAuthenticated()).isTrue();
|
||||
// check explicit set to untrusted (we can safely go from trusted to untrusted,
|
||||
@@ -43,7 +43,7 @@ public class UsernamePasswordAuthenticationTokenTests {
|
||||
grantedToken.setAuthenticated(false);
|
||||
assertThat(!grantedToken.isAuthenticated()).isTrue();
|
||||
// Now let's create a UsernamePasswordAuthenticationToken without any
|
||||
// GrantedAuthorty[]s (different constructor)
|
||||
// GrantedAuthority[]s (different constructor)
|
||||
UsernamePasswordAuthenticationToken noneGrantedToken = UsernamePasswordAuthenticationToken
|
||||
.unauthenticated("Test", "Password");
|
||||
assertThat(!noneGrantedToken.isAuthenticated()).isTrue();
|
||||
|
||||
Reference in New Issue
Block a user