SEC-688: java.lang.NullPointerException in AbstractAuthenticationToken.equals()
http://jira.springframework.org/browse/SEC-688
This commit is contained in:
@@ -45,4 +45,8 @@ public class X509AuthenticationTokenTests extends TestCase {
|
||||
token.setAuthenticated(true);
|
||||
assertTrue(token.isAuthenticated());
|
||||
}
|
||||
|
||||
public void testEquals() throws Exception {
|
||||
assertEquals(X509TestUtils.createToken(), X509TestUtils.createToken());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,8 +100,7 @@ public class X509TestUtils {
|
||||
return (X509Certificate) cf.generateCertificate(in);
|
||||
}
|
||||
|
||||
public static X509AuthenticationToken createToken()
|
||||
throws Exception {
|
||||
public static X509AuthenticationToken createToken() throws Exception {
|
||||
return new X509AuthenticationToken(buildTestCertificate());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user